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 | |
| 5 | #ifndef SHILL_TEST_CONFIG_ |
| 6 | #define SHILL_TEST_CONFIG_ |
| 7 | |
| 8 | #include <string> |
| 9 | |
Eric Shienbrood | 3e20a23 | 2012-02-16 11:35:56 -0500 | [diff] [blame] | 10 | #include <base/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(); |
| 19 | virtual ~TestConfig(); |
| 20 | |
| 21 | virtual std::string GetRunDirectory(); |
| 22 | virtual std::string GetStorageDirectory(); |
| 23 | |
| 24 | private: |
| 25 | ScopedTempDir dir_; |
| 26 | |
| 27 | DISALLOW_COPY_AND_ASSIGN(TestConfig); |
| 28 | }; |
| 29 | |
| 30 | } // namespace shill |
| 31 | |
| 32 | #endif // SHILL_TEST_CONFIG_ |