Lines Matching refs:EXPECT_TRUE

64     EXPECT_TRUE(common_prefs_->SetString(key0, ""));  in MultiNamespaceKeyTest()
65 EXPECT_TRUE(common_prefs_->SetString(key0corner, "")); in MultiNamespaceKeyTest()
66 EXPECT_TRUE(common_prefs_->SetString(key1A, "")); in MultiNamespaceKeyTest()
67 EXPECT_TRUE(common_prefs_->SetString(key1B, "")); in MultiNamespaceKeyTest()
68 EXPECT_TRUE(common_prefs_->SetString(key2, "")); in MultiNamespaceKeyTest()
69 EXPECT_TRUE(common_prefs_->SetString(key2corner, "")); in MultiNamespaceKeyTest()
71 EXPECT_TRUE(common_prefs_->Exists(key0)); in MultiNamespaceKeyTest()
72 EXPECT_TRUE(common_prefs_->Exists(key0corner)); in MultiNamespaceKeyTest()
73 EXPECT_TRUE(common_prefs_->Exists(key1A)); in MultiNamespaceKeyTest()
74 EXPECT_TRUE(common_prefs_->Exists(key1B)); in MultiNamespaceKeyTest()
75 EXPECT_TRUE(common_prefs_->Exists(key2)); in MultiNamespaceKeyTest()
76 EXPECT_TRUE(common_prefs_->Exists(key2corner)); in MultiNamespaceKeyTest()
79 EXPECT_TRUE(common_prefs_->GetSubKeys("ns1/nsB/", &keys2)); in MultiNamespaceKeyTest()
82 EXPECT_TRUE(common_prefs_->Delete(key)); in MultiNamespaceKeyTest()
83 EXPECT_TRUE(common_prefs_->Exists(key0)); in MultiNamespaceKeyTest()
84 EXPECT_TRUE(common_prefs_->Exists(key0corner)); in MultiNamespaceKeyTest()
85 EXPECT_TRUE(common_prefs_->Exists(key1A)); in MultiNamespaceKeyTest()
86 EXPECT_TRUE(common_prefs_->Exists(key1B)); in MultiNamespaceKeyTest()
88 EXPECT_TRUE(common_prefs_->Exists(key2corner)); in MultiNamespaceKeyTest()
91 EXPECT_TRUE(common_prefs_->GetSubKeys("ns1/nsB", &keys2corner)); in MultiNamespaceKeyTest()
94 EXPECT_TRUE(common_prefs_->Delete(key)); in MultiNamespaceKeyTest()
98 EXPECT_TRUE(common_prefs_->GetSubKeys("ns1/nsA/", &keys1)); in MultiNamespaceKeyTest()
101 EXPECT_TRUE(common_prefs_->Delete(key)); in MultiNamespaceKeyTest()
102 EXPECT_TRUE(common_prefs_->Exists(key0)); in MultiNamespaceKeyTest()
103 EXPECT_TRUE(common_prefs_->Exists(key0corner)); in MultiNamespaceKeyTest()
108 EXPECT_TRUE(common_prefs_->GetSubKeys("ns1/", &keys0)); in MultiNamespaceKeyTest()
111 EXPECT_TRUE(common_prefs_->Delete(key)); in MultiNamespaceKeyTest()
113 EXPECT_TRUE(common_prefs_->Exists(key0corner)); in MultiNamespaceKeyTest()
116 EXPECT_TRUE(common_prefs_->GetSubKeys("ns1", &keys0corner)); in MultiNamespaceKeyTest()
119 EXPECT_TRUE(common_prefs_->Delete(key)); in MultiNamespaceKeyTest()
160 EXPECT_TRUE(base::CreateDirectory(ns2B_path)); in TEST()
161 EXPECT_TRUE(base::PathExists(ns2B_path)); in TEST()
163 EXPECT_TRUE(base::CreateDirectory(sub_pref_path)); in TEST()
164 EXPECT_TRUE(base::PathExists(sub_pref_path)); in TEST()
166 EXPECT_TRUE(base::PathExists(ns1_path)); in TEST()
175 EXPECT_TRUE(prefs_.file_storage_.GetFileNameForKey(kAllvalidCharsKey, &path)); in TEST_F()
205 EXPECT_TRUE(prefs_.GetString(kKey, &value)); in TEST_F()
221 EXPECT_TRUE(prefs_.SetString(kKey, kValue)); in TEST_F()
223 EXPECT_TRUE(base::ReadFileToString(prefs_dir_.Append(kKey), &value)); in TEST_F()
236 EXPECT_TRUE(prefs_.Init(subdir)); in TEST_F()
237 EXPECT_TRUE(prefs_.SetString(kKey, kValue)); in TEST_F()
239 EXPECT_TRUE(base::ReadFileToString(subdir.Append(kKey), &value)); in TEST_F()
244 EXPECT_TRUE(prefs_.Init(base::FilePath("/dev/null"))); in TEST_F()
251 EXPECT_TRUE(base::DirectoryExists(prefs_dir_.Append(kKey))); in TEST_F()
257 EXPECT_TRUE(prefs_.GetInt64(kKey, &value)); in TEST_F()
272 EXPECT_TRUE(prefs_.GetInt64(kKey, &value)); in TEST_F()
281 EXPECT_TRUE(prefs_.GetInt64(kKey, &value)); in TEST_F()
288 EXPECT_TRUE(prefs_.GetInt64(kKey, &value)); in TEST_F()
298 EXPECT_TRUE(prefs_.SetInt64(kKey, -123)); in TEST_F()
300 EXPECT_TRUE(base::ReadFileToString(prefs_dir_.Append(kKey), &value)); in TEST_F()
311 EXPECT_TRUE(prefs_.SetInt64(kKey, std::numeric_limits<int64_t>::max())); in TEST_F()
313 EXPECT_TRUE(base::ReadFileToString(prefs_dir_.Append(kKey), &value)); in TEST_F()
319 EXPECT_TRUE(prefs_.SetInt64(kKey, std::numeric_limits<int64_t>::min())); in TEST_F()
321 EXPECT_TRUE(base::ReadFileToString(prefs_dir_.Append(kKey), &value)); in TEST_F()
329 EXPECT_TRUE(prefs_.GetBoolean(kKey, &value)); in TEST_F()
337 EXPECT_TRUE(prefs_.GetBoolean(kKey, &value)); in TEST_F()
338 EXPECT_TRUE(value); in TEST_F()
362 EXPECT_TRUE(prefs_.SetBoolean(kKey, true)); in TEST_F()
364 EXPECT_TRUE(base::ReadFileToString(prefs_dir_.Append(kKey), &value)); in TEST_F()
370 EXPECT_TRUE(prefs_.SetBoolean(kKey, false)); in TEST_F()
372 EXPECT_TRUE(base::ReadFileToString(prefs_dir_.Append(kKey), &value)); in TEST_F()
388 EXPECT_TRUE(prefs_.Exists(kKey)); in TEST_F()
393 EXPECT_TRUE(prefs_.Delete(kKey)); in TEST_F()
397 EXPECT_TRUE(prefs_.Delete(kKey)); in TEST_F()
414 EXPECT_TRUE(base::PathExists(sub_pref_path.Append(sub_key1))); in TEST_F()
415 EXPECT_TRUE(base::PathExists(sub_pref_path.Append(sub_key2))); in TEST_F()
419 EXPECT_TRUE(base::PathExists(sub_pref_path.Append(sub_key2))); in TEST_F()
481 EXPECT_TRUE(prefs_.SetString(kKey, "value")); in TEST_F()
483 EXPECT_TRUE(prefs_.SetString(kKey, "other value")); in TEST_F()
485 EXPECT_TRUE(prefs_.SetString(kKey, "yet another value")); in TEST_F()
517 EXPECT_TRUE(prefs_.SetInt64(kKey, 1234)); in TEST_F()
518 EXPECT_TRUE(prefs_.Exists(kKey)); in TEST_F()
519 EXPECT_TRUE(prefs_.GetInt64(kKey, &value)); in TEST_F()
522 EXPECT_TRUE(prefs_.Delete(kKey)); in TEST_F()
524 EXPECT_TRUE(prefs_.Delete(kKey)); in TEST_F()
528 EXPECT_TRUE(prefs_.Exists(key)); in TEST_F()
529 EXPECT_TRUE(prefs_.Delete(kKey)); in TEST_F()