[shill] Save profile specific data
BUG=chromium-os:17253
TEST=unit
Change-Id: I1ae28e1f42f4c0bf132cb28df9f334dfa1ca6795
Reviewed-on: http://gerrit.chromium.org/gerrit/7831
Reviewed-by: Darin Petkov <petkov@chromium.org>
Tested-by: Chris Masone <cmasone@chromium.org>
diff --git a/default_profile.h b/default_profile.h
index 803c444..59a75c3 100644
--- a/default_profile.h
+++ b/default_profile.h
@@ -10,6 +10,7 @@
#include <base/file_path.h>
#include <base/memory/scoped_ptr.h>
+#include <gtest/gtest_prod.h> // for FRIEND_TEST
#include "shill/manager.h"
#include "shill/profile.h"
@@ -29,6 +30,8 @@
const Manager::Properties &manager_props);
virtual ~DefaultProfile();
+ virtual bool Save(StoreInterface *storage);
+
// Sets |path| to the persistent store file path for the default, global
// profile. Returns true on success, and false if unable to determine an
// appropriate file location.
@@ -37,9 +40,16 @@
virtual bool GetStoragePath(FilePath *path);
private:
+ FRIEND_TEST(DefaultProfileTest, Save);
+
static const char kDefaultId[];
+ static const char kStorageId[];
+ static const char kStorageCheckPortalList[];
+ static const char kStorageName[];
+ static const char kStorageOfflineMode[];
const FilePath storage_path_;
+ const Manager::Properties &props_;
DISALLOW_COPY_AND_ASSIGN(DefaultProfile);
};