| Index: chrome/browser/metrics/variations/variations_seed_store_unittest.cc
|
| ===================================================================
|
| --- chrome/browser/metrics/variations/variations_seed_store_unittest.cc (revision 265923)
|
| +++ chrome/browser/metrics/variations/variations_seed_store_unittest.cc (working copy)
|
| @@ -24,6 +24,11 @@
|
| : VariationsSeedStore(local_state) {}
|
| virtual ~TestVariationsSeedStore() {}
|
|
|
| + bool StoreSeedForTesting(const std::string& seed_data) {
|
| + VariationsSeed seed;
|
| + return StoreSeedData(seed_data, std::string(), base::Time::Now(), &seed);
|
| + }
|
| +
|
| virtual VariationsSeedStore::VerifySignatureResult VerifySeedSignature(
|
| const std::string& seed_bytes,
|
| const std::string& base64_seed_signature) OVERRIDE {
|
| @@ -122,7 +127,6 @@
|
| }
|
|
|
| TEST(VariationsSeedStoreTest, StoreSeedData) {
|
| - const base::Time now = base::Time::Now();
|
| const VariationsSeed seed = CreateTestSeed();
|
| const std::string serialized_seed = SerializeSeed(seed);
|
|
|
| @@ -131,7 +135,7 @@
|
|
|
| TestVariationsSeedStore seed_store(&prefs);
|
|
|
| - EXPECT_TRUE(seed_store.StoreSeedData(serialized_seed, std::string(), now));
|
| + EXPECT_TRUE(seed_store.StoreSeedForTesting(serialized_seed));
|
| // Make sure the pref was actually set.
|
| EXPECT_FALSE(PrefHasDefaultValue(prefs, prefs::kVariationsSeed));
|
|
|
| @@ -144,7 +148,7 @@
|
|
|
| // Check if trying to store a bad seed leaves the pref unchanged.
|
| prefs.ClearPref(prefs::kVariationsSeed);
|
| - EXPECT_FALSE(seed_store.StoreSeedData("should fail", std::string(), now));
|
| + EXPECT_FALSE(seed_store.StoreSeedForTesting("should fail"));
|
| EXPECT_TRUE(PrefHasDefaultValue(prefs, prefs::kVariationsSeed));
|
| }
|
|
|
|
|