base_test_unittest.h 788 B

1234567891011121314151617181920212223242526272829
  1. // Copyright (c) 2011 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef COURGETTE_BASE_TEST_UNITTEST_H_
  5. #define COURGETTE_BASE_TEST_UNITTEST_H_
  6. #include <list>
  7. #include <string>
  8. #include "base/files/file_path.h"
  9. #include "testing/gtest/include/gtest/gtest.h"
  10. class BaseTest : public testing::Test {
  11. public:
  12. std::string FileContents(const char* file_name) const;
  13. // Pass a list of strings, and get back the concatenated contents
  14. // of each of the mentioned files.
  15. std::string FilesContents(std::list<std::string> file_names) const;
  16. private:
  17. virtual void SetUp();
  18. virtual void TearDown();
  19. base::FilePath test_dir_;
  20. };
  21. #endif // COURGETTE_BASE_TEST_UNITTEST_H_