15460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao//===- PathSetTest.cpp ----------------------------------------------------===// 25460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao// 35460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao// The MCLinker Project 45460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao// 55460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao// This file is distributed under the University of Illinois Open Source 65460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao// License. See LICENSE.TXT for details. 75460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao// 85460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao//===----------------------------------------------------------------------===// 95460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao#include "mcld/Support/PathSet.h" 105460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao#include "PathSetTest.h" 115460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao 125460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liaousing namespace mcld; 135460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liaousing namespace mcldtest; 145460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao 155460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao// Constructor can do set-up work for all test here. 1637b74a387bb3993387029859c2d9d051c41c724eStephen HinesPathSetTest::PathSetTest() { 1737b74a387bb3993387029859c2d9d051c41c724eStephen Hines // create testee. modify it if need 1837b74a387bb3993387029859c2d9d051c41c724eStephen Hines m_pTestee = new PathSet(); 195460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao} 205460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao 215460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao// Destructor can do clean-up work that doesn't throw exceptions here. 2237b74a387bb3993387029859c2d9d051c41c724eStephen HinesPathSetTest::~PathSetTest() { 2337b74a387bb3993387029859c2d9d051c41c724eStephen Hines delete m_pTestee; 245460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao} 255460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao 265460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao// SetUp() will be called immediately before each test. 2737b74a387bb3993387029859c2d9d051c41c724eStephen Hinesvoid PathSetTest::SetUp() { 285460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao} 295460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao 305460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao// TearDown() will be called immediately after each test. 3137b74a387bb3993387029859c2d9d051c41c724eStephen Hinesvoid PathSetTest::TearDown() { 325460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao} 335460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao 345460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao//==========================================================================// 355460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao// Testcases 365460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao// 375460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao 3837b74a387bb3993387029859c2d9d051c41c724eStephen HinesTEST_F(PathSetTest, ) { 395460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao} 40