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 | #include "shill/shill_test_config.h" |
| 6 | |
| 7 | #include <string> |
| 8 | |
| 9 | #include <base/logging.h> |
| 10 | |
| 11 | using std::string; |
| 12 | |
| 13 | namespace shill { |
| 14 | |
| 15 | TestConfig::TestConfig() { |
| 16 | CHECK(dir_.CreateUniqueTempDir()); |
| 17 | } |
| 18 | |
| 19 | TestConfig::~TestConfig() { |
| 20 | } |
| 21 | |
| 22 | string TestConfig::GetRunDirectory() { |
| 23 | return dir_.path().value(); |
| 24 | } |
| 25 | |
| 26 | string TestConfig::GetStorageDirectory() { |
| 27 | return dir_.path().value(); |
| 28 | } |
| 29 | |
| 30 | } // namespace shill |