[email protected] | bf0ece4 | 2011-10-18 01:08:35 | [diff] [blame] | 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 | |||||
[email protected] | bf0ece4 | 2011-10-18 01:08:35 | [diff] [blame] | 5 | #ifndef COURGETTE_BASE_TEST_UNITTEST_H_ |
6 | #define COURGETTE_BASE_TEST_UNITTEST_H_ | ||||
7 | |||||
[email protected] | c678e65ed | 2011-10-19 05:31:59 | [diff] [blame] | 8 | #include <list> |
[email protected] | bf0ece4 | 2011-10-18 01:08:35 | [diff] [blame] | 9 | #include <string> |
10 | |||||
[email protected] | 47163d4 | 2013-05-16 02:37:50 | [diff] [blame] | 11 | #include "base/files/file_path.h" |
[email protected] | bf0ece4 | 2011-10-18 01:08:35 | [diff] [blame] | 12 | #include "testing/gtest/include/gtest/gtest.h" |
13 | |||||
14 | class BaseTest : public testing::Test { | ||||
15 | public: | ||||
16 | std::string FileContents(const char* file_name) const; | ||||
17 | |||||
[email protected] | c678e65ed | 2011-10-19 05:31:59 | [diff] [blame] | 18 | // Pass a list of strings, and get back the concatenated contents |
19 | // of each of the mentioned files. | ||||
20 | std::string FilesContents(std::list<std::string> file_names) const; | ||||
21 | |||||
[email protected] | bf0ece4 | 2011-10-18 01:08:35 | [diff] [blame] | 22 | private: |
23 | virtual void SetUp(); | ||||
24 | virtual void TearDown(); | ||||
25 | |||||
[email protected] | 9e27571 | 2013-02-10 19:20:14 | [diff] [blame] | 26 | base::FilePath test_dir_; |
[email protected] | bf0ece4 | 2011-10-18 01:08:35 | [diff] [blame] | 27 | }; |
28 | |||||
[email protected] | 93d529ca | 2011-10-21 22:24:19 | [diff] [blame] | 29 | #endif // COURGETTE_BASE_TEST_UNITTEST_H_ |