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