chrome/browser/chrome_elf_init_unittest_win.cc
TEST_F(ChromeBlacklistTrialTest, DefaultRun) {
  // Set some dummy values as beacons.
  blacklist_registry_key_->WriteValue(blacklist::kBeaconState,
                                      blacklist::BLACKLIST_DISABLED);
  blacklist_registry_key_->WriteValue(blacklist::kBeaconVersion, L"Data");

  // This setup code should result in the default group, which should have
  // the blacklist set up.
  InitializeChromeElf();

  // Ensure the beacon values are now correct, indicating the
  // blacklist beacon was setup.
  ASSERT_EQ(blacklist::BLACKLIST_ENABLED, GetBlacklistState());
  chrome::VersionInfo version_info;
  base::string16 version(base::UTF8ToUTF16(version_info.Version()));
  ASSERT_EQ(version, GetBlacklistVersion());
}
// Ensure that the default trial sets up the blacklist beacons.
Ensure that the default trial sets up the blacklist beacons.
Ensure that the default trial sets up the blacklist beacons .
TEST_F(ChromeBlacklistTrialTest, DefaultRun) {
  blacklist_registry_key_->WriteValue(blacklist::kBeaconState,
                                      blacklist::BLACKLIST_DISABLED);
  blacklist_registry_key_->WriteValue(blacklist::kBeaconVersion, L"Data");
  InitializeChromeElf();
  ASSERT_EQ(blacklist::BLACKLIST_ENABLED, GetBlacklistState());
  chrome::VersionInfo version_info;
  base::string16 version(base::UTF8ToUTF16(version_info.Version()));
  ASSERT_EQ(version, GetBlacklistVersion());
}
TEST_F ( ChromeBlacklistTrialTest , DefaultRun ) { blacklist_registry_key_ -> WriteValue ( blacklist :: kBeaconState , blacklist :: BLACKLIST_DISABLED ) ; blacklist_registry_key_ -> WriteValue ( blacklist :: kBeaconVersion , L" " ) ; InitializeChromeElf ( ) ; ASSERT_EQ ( blacklist :: BLACKLIST_ENABLED , GetBlacklistState ( ) ) ; chrome :: VersionInfo version_info ; base :: string16 version ( base :: UTF8ToUTF16 ( version_info . Version ( ) ) ) ; ASSERT_EQ ( version , GetBlacklistVersion ( ) ) ; }
Ensure that the default trial sets up the blacklist beacons.
Ensure that the default trial sets up the blacklist beacons .
// Set some dummy values as beacons. // This setup code should result in the default group, which should have // the blacklist set up. // Ensure the beacon values are now correct, indicating the // blacklist beacon was setup.