Chris Masone | b9c0059 | 2011-10-06 13:10:39 -0700 | [diff] [blame] | 1 | // Copyright (c) 2011 The Chromium OS 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 | |
Ben Chan | c45688b | 2014-07-02 23:50:45 -0700 | [diff] [blame] | 5 | #ifndef SHILL_SHILL_TEST_CONFIG_H_ |
| 6 | #define SHILL_SHILL_TEST_CONFIG_H_ |
Chris Masone | b9c0059 | 2011-10-06 13:10:39 -0700 | [diff] [blame] | 7 | |
| 8 | #include <string> |
| 9 | |
Paul Stewart | 5ad1606 | 2013-02-21 18:10:48 -0800 | [diff] [blame] | 10 | #include <base/files/scoped_temp_dir.h> |
Chris Masone | b9c0059 | 2011-10-06 13:10:39 -0700 | [diff] [blame] | 11 | |
| 12 | #include "shill/shill_config.h" |
| 13 | |
| 14 | namespace shill { |
| 15 | |
| 16 | class TestConfig : public Config { |
| 17 | public: |
| 18 | TestConfig(); |
Ben Chan | 5ea763b | 2014-08-13 11:07:54 -0700 | [diff] [blame] | 19 | ~TestConfig() override; |
Chris Masone | b9c0059 | 2011-10-06 13:10:39 -0700 | [diff] [blame] | 20 | |
Yunlian Jiang | 6acd966 | 2015-01-30 08:36:10 -0800 | [diff] [blame] | 21 | std::string GetRunDirectory() override; |
| 22 | std::string GetStorageDirectory() override; |
Chris Masone | b9c0059 | 2011-10-06 13:10:39 -0700 | [diff] [blame] | 23 | |
| 24 | private: |
Paul Stewart | 5ad1606 | 2013-02-21 18:10:48 -0800 | [diff] [blame] | 25 | base::ScopedTempDir dir_; |
Chris Masone | b9c0059 | 2011-10-06 13:10:39 -0700 | [diff] [blame] | 26 | |
| 27 | DISALLOW_COPY_AND_ASSIGN(TestConfig); |
| 28 | }; |
| 29 | |
| 30 | } // namespace shill |
| 31 | |
Ben Chan | c45688b | 2014-07-02 23:50:45 -0700 | [diff] [blame] | 32 | #endif // SHILL_SHILL_TEST_CONFIG_H_ |