[shill] Profiles need to own their own storage

We're moving to a model where we rely on the StoreInterface
implementation to maintain profile state, instead of managing
a list of Service objects manually.  Thus, we need to allow
Profile to own its own StoreInterface.

BUG=chromium-os:17253
TEST=unit

Change-Id: Ie62462686ecf598efeac08a2d3180cd372430bb9
Reviewed-on: http://gerrit.chromium.org/gerrit/9916
Commit-Ready: Chris Masone <cmasone@chromium.org>
Reviewed-by: Chris Masone <cmasone@chromium.org>
Tested-by: Chris Masone <cmasone@chromium.org>
Reviewed-by: Paul Stewart <pstew@chromium.org>
diff --git a/shill_test_config.h b/shill_test_config.h
new file mode 100644
index 0000000..729816e
--- /dev/null
+++ b/shill_test_config.h
@@ -0,0 +1,32 @@
+// Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef SHILL_TEST_CONFIG_
+#define SHILL_TEST_CONFIG_
+
+#include <string>
+
+#include <base/memory/scoped_temp_dir.h>
+
+#include "shill/shill_config.h"
+
+namespace shill {
+
+class TestConfig : public Config {
+ public:
+  TestConfig();
+  virtual ~TestConfig();
+
+  virtual std::string GetRunDirectory();
+  virtual std::string GetStorageDirectory();
+
+ private:
+  ScopedTempDir dir_;
+
+  DISALLOW_COPY_AND_ASSIGN(TestConfig);
+};
+
+}  // namespace shill
+
+#endif  // SHILL_TEST_CONFIG_