Lines Matching refs:contents

25   PrefServiceHashStoreContents contents("store_id", &local_state_);
26 ASSERT_EQ("store_id", contents.hash_store_id());
31 PrefServiceHashStoreContents contents("store_id", &local_state_);
32 ASSERT_FALSE(contents.IsInitialized());
33 (*contents.GetMutableContents())->Set("foo", new base::StringValue("bar"));
34 ASSERT_TRUE(contents.IsInitialized());
37 PrefServiceHashStoreContents contents("store_id", &local_state_);
38 ASSERT_TRUE(contents.IsInitialized());
50 PrefServiceHashStoreContents contents("store_id", &local_state_);
51 ASSERT_FALSE(contents.IsInitialized());
52 (*contents.GetMutableContents())->Set("foo", new base::StringValue("bar"));
53 ASSERT_TRUE(contents.IsInitialized());
64 PrefServiceHashStoreContents contents("store_id", &local_state_);
65 ASSERT_TRUE(contents.IsInitialized());
66 contents.Reset();
67 ASSERT_FALSE(contents.IsInitialized());
74 PrefServiceHashStoreContents contents("store_id", &local_state_);
75 ASSERT_FALSE(contents.IsInitialized());
93 PrefServiceHashStoreContents contents("store_id", &local_state_);
94 ASSERT_EQ(NULL, contents.GetContents());
95 (*contents.GetMutableContents())->Set("foo", new base::StringValue("bar"));
96 ASSERT_FALSE(contents.GetContents() == NULL);
98 ASSERT_TRUE(contents.GetContents()->GetString("foo", &actual_value));
105 PrefServiceHashStoreContents contents("store_id", &local_state_);
106 ASSERT_FALSE(contents.GetContents() == NULL);
112 PrefServiceHashStoreContents contents("store_id", &local_state_);
113 ASSERT_TRUE(contents.GetSuperMac().empty());
114 (*contents.GetMutableContents())->Set("foo", new base::StringValue("bar"));
115 ASSERT_TRUE(contents.GetSuperMac().empty());
116 contents.SetSuperMac("0123456789");
117 ASSERT_EQ("0123456789", contents.GetSuperMac());
120 PrefServiceHashStoreContents contents("store_id", &local_state_);
121 ASSERT_EQ("0123456789", contents.GetSuperMac());