Lines Matching refs:kGroup

286   static const char kGroup[] = "the-group";  in TEST_F()  local
293 kGroup, kKeyDead, kKeyAlive, kValueAlive)); in TEST_F()
295 EXPECT_TRUE(store_->DeleteKey(kGroup, kKeyDead)); in TEST_F()
296 EXPECT_TRUE(store_->DeleteKey(kGroup, "random-key")); in TEST_F()
301 kGroup, kKeyAlive, kValueAlive), in TEST_F()
326 static const char kGroup[] = "something"; in TEST_F() local
331 kGroup, kKey, kValue)); in TEST_F()
334 EXPECT_TRUE(store_->GetString(kGroup, kKey, &value)); in TEST_F()
337 EXPECT_FALSE(store_->GetString(kGroup, "bar", &value)); in TEST_F()
338 EXPECT_TRUE(store_->GetString(kGroup, kKey, nullptr)); in TEST_F()
343 static const char kGroup[] = "string-group"; in TEST_F() local
349 ASSERT_TRUE(store_->SetString(kGroup, kKey1, kValue1)); in TEST_F()
350 ASSERT_TRUE(store_->SetString(kGroup, kKey2, kValue2)); in TEST_F()
355 kGroup, kKey1, kValue1, kKey2, kValue2), in TEST_F()
360 static const char kGroup[] = "boo"; in TEST_F() local
368 kGroup, kKeyTrue, kKeyFalse, kKeyBad)); in TEST_F()
372 EXPECT_TRUE(store_->GetBool(kGroup, kKeyFalse, &value)); in TEST_F()
377 EXPECT_TRUE(store_->GetBool(kGroup, kKeyTrue, &value)); in TEST_F()
382 EXPECT_FALSE(store_->GetBool(kGroup, kKeyBad, &value)); in TEST_F()
383 EXPECT_FALSE(store_->GetBool(kGroup, "unknown", &value)); in TEST_F()
386 EXPECT_TRUE(store_->GetBool(kGroup, kKeyFalse, nullptr)); in TEST_F()
391 static const char kGroup[] = "bool-group"; in TEST_F() local
395 ASSERT_TRUE(store_->SetBool(kGroup, kKeyTrue, true)); in TEST_F()
396 ASSERT_TRUE(store_->SetBool(kGroup, kKeyFalse, false)); in TEST_F()
401 kGroup, kKeyTrue, kKeyFalse), in TEST_F()
406 static const char kGroup[] = "numbers"; in TEST_F() local
417 kGroup, in TEST_F()
424 EXPECT_TRUE(store_->GetInt(kGroup, kKeyNeg, &value)); in TEST_F()
429 EXPECT_TRUE(store_->GetInt(kGroup, kKeyPos, &value)); in TEST_F()
434 EXPECT_FALSE(store_->GetInt(kGroup, kKeyBad, &value)); in TEST_F()
435 EXPECT_FALSE(store_->GetInt(kGroup, "invalid", &value)); in TEST_F()
438 EXPECT_TRUE(store_->GetInt(kGroup, kKeyPos, nullptr)); in TEST_F()
443 static const char kGroup[] = "int-group"; in TEST_F() local
449 ASSERT_TRUE(store_->SetInt(kGroup, kKey1, kValue1)); in TEST_F()
450 ASSERT_TRUE(store_->SetInt(kGroup, kKey2, kValue2)); in TEST_F()
455 kGroup, kKey1, kValue1, kKey2, kValue2), in TEST_F()
460 static const char kGroup[] = "numbers"; in TEST_F() local
471 kGroup, in TEST_F()
478 EXPECT_TRUE(store_->GetUint64(kGroup, kKeyGood, &value)); in TEST_F()
483 EXPECT_FALSE(store_->GetUint64(kGroup, kKeyBad, &value)); in TEST_F()
484 EXPECT_FALSE(store_->GetUint64(kGroup, "invalid", &value)); in TEST_F()
487 EXPECT_TRUE(store_->GetUint64(kGroup, kKeyGood, nullptr)); in TEST_F()
492 static const char kGroup[] = "int-group"; in TEST_F() local
496 ASSERT_TRUE(store_->SetUint64(kGroup, kKey, kValue)); in TEST_F()
500 kGroup, kKey, in TEST_F()
506 static const char kGroup[] = "string-lists"; in TEST_F() local
521 kGroup, in TEST_F()
531 EXPECT_TRUE(store_->GetStringList(kGroup, kKeyValues, &value)); in TEST_F()
537 EXPECT_TRUE(store_->GetStringList(kGroup, kKeyEmptyValue, &value)); in TEST_F()
542 EXPECT_TRUE(store_->GetStringList(kGroup, kKeyValueEmpty, &value)); in TEST_F()
547 EXPECT_TRUE(store_->GetStringList(kGroup, kKeyEmpty, &value)); in TEST_F()
550 EXPECT_TRUE(store_->GetStringList(kGroup, kKeyValueEmptyValue, &value)); in TEST_F()
559 EXPECT_FALSE(store_->GetStringList(kGroup, "some-key", &value)); in TEST_F()
560 EXPECT_TRUE(store_->GetStringList(kGroup, kKeyValues, nullptr)); in TEST_F()
565 static const char kGroup[] = "strings"; in TEST_F() local
577 ASSERT_TRUE(store_->SetStringList(kGroup, kKeyEmpty, value)); in TEST_F()
583 ASSERT_TRUE(store_->SetStringList(kGroup, kKeyEmptyValue, value)); in TEST_F()
589 ASSERT_TRUE(store_->SetStringList(kGroup, kKeyValueEmpty, value)); in TEST_F()
596 ASSERT_TRUE(store_->SetStringList(kGroup, kKeyValueEmptyValue, value)); in TEST_F()
603 ASSERT_TRUE(store_->SetStringList(kGroup, kKeyValues, value)); in TEST_F()
612 kGroup, in TEST_F()
622 static const char kGroup[] = "crypto-group"; in TEST_F() local
626 kGroup, kKey, kROT47Text)); in TEST_F()
629 EXPECT_TRUE(store_->GetCryptedString(kGroup, kKey, &value)); in TEST_F()
632 EXPECT_FALSE(store_->GetCryptedString(kGroup, "non-secret", &value)); in TEST_F()
633 EXPECT_TRUE(store_->GetCryptedString(kGroup, kKey, nullptr)); in TEST_F()
638 static const char kGroup[] = "crypted-string-group"; in TEST_F() local
641 ASSERT_TRUE(store_->SetCryptedString(kGroup, kKey, kPlainText)); in TEST_F()
645 kGroup, kKey, kROT47Text), in TEST_F()
650 static const char kGroup[] = "string-group"; in TEST_F() local
656 ASSERT_TRUE(store_->SetString(kGroup, kKey1, kValue1)); in TEST_F()
659 ASSERT_TRUE(store_->SetString(kGroup, kKey2, kValue2)); in TEST_F()
661 ASSERT_TRUE(store_->GetString(kGroup, kKey1, &value)); in TEST_F()
663 ASSERT_TRUE(store_->GetString(kGroup, kKey2, &value)); in TEST_F()
689 static const char kGroup[] = "string-group"; in TEST_F() local
695 ASSERT_TRUE(store_->SetString(kGroup, kKey1, kValue1)); in TEST_F()
697 ASSERT_TRUE(OpenCheckClose(test_file_, kGroup, kKey1, kValue1)); in TEST_F()
699 ASSERT_TRUE(store_->SetString(kGroup, kKey2, kValue2)); in TEST_F()
701 ASSERT_TRUE(OpenCheckClose(test_file_, kGroup, kKey2, kValue2)); in TEST_F()
703 EXPECT_TRUE(store_->DeleteKey(kGroup, kKey1)); in TEST_F()
705 ASSERT_FALSE(OpenCheckClose(test_file_, kGroup, kKey1, kValue1)); in TEST_F()