blob: 81ee8ea485341ad2288482fea29e660689add3a2 [file] [log] [blame]
Chris Masoneb9c00592011-10-06 13:10:39 -07001// 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 Chanc45688b2014-07-02 23:50:45 -07005#ifndef SHILL_SHILL_TEST_CONFIG_H_
6#define SHILL_SHILL_TEST_CONFIG_H_
Chris Masoneb9c00592011-10-06 13:10:39 -07007
8#include <string>
9
Paul Stewart5ad16062013-02-21 18:10:48 -080010#include <base/files/scoped_temp_dir.h>
Chris Masoneb9c00592011-10-06 13:10:39 -070011
12#include "shill/shill_config.h"
13
14namespace shill {
15
16class TestConfig : public Config {
17 public:
18 TestConfig();
Ben Chan5ea763b2014-08-13 11:07:54 -070019 ~TestConfig() override;
Chris Masoneb9c00592011-10-06 13:10:39 -070020
21 virtual std::string GetRunDirectory();
22 virtual std::string GetStorageDirectory();
23
24 private:
Paul Stewart5ad16062013-02-21 18:10:48 -080025 base::ScopedTempDir dir_;
Chris Masoneb9c00592011-10-06 13:10:39 -070026
27 DISALLOW_COPY_AND_ASSIGN(TestConfig);
28};
29
30} // namespace shill
31
Ben Chanc45688b2014-07-02 23:50:45 -070032#endif // SHILL_SHILL_TEST_CONFIG_H_