15460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao//===- InputTreeTest.h ----------------------------------------------------===//
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#ifndef INPUTTREE_TEST_H
105460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao#define INPUTTREE_TEST_H
115460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao
125460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao#include <gtest.h>
135460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao
145460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liaonamespace mcld
155460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao{
165460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liaoclass InputTree;
175460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liaoclass InputFactory;
185460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liaoclass AttributeFactory;
195460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao
205460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao} // namespace for mcld
215460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao
225460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liaonamespace mcldtest
235460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao{
245460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao
255460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao/** \class InputTreeTest
265460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao *  \brief
275460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao *
285460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao *  \see InputTree
295460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao */
305460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liaoclass InputTreeTest : public ::testing::Test
315460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao{
325460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liaopublic:
335460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao	// Constructor can do set-up work for all test here.
345460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao	InputTreeTest();
355460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao
365460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao	// Destructor can do clean-up work that doesn't throw exceptions here.
375460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao	virtual ~InputTreeTest();
385460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao
395460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao	// SetUp() will be called immediately before each test.
405460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao	virtual void SetUp();
415460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao
425460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao	// TearDown() will be called immediately after each test.
435460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao	virtual void TearDown();
445460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao
455460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liaoprotected:
465460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao	mcld::AttributeFactory *m_pAttr;
475460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao	mcld::InputFactory *m_pAlloc;
485460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao	mcld::InputTree* m_pTestee;
495460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao};
505460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao
515460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao} // namespace of mcldtest
525460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao
535460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao#endif
545460a1f25d9ddecb5c70667267d66d51af177a99Shih-wei Liao
55