Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6745)

Unified Diff: chrome/installer/util/experiment_storage_unittest.cc

Issue 2933043002: Installer support for Windows 10 inactive user toast. (Closed)
Patch Set: review feedback Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/installer/util/experiment_storage.cc ('k') | chrome/tools/test/experiment_tool_win.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/experiment_storage_unittest.cc
diff --git a/chrome/installer/util/experiment_storage_unittest.cc b/chrome/installer/util/experiment_storage_unittest.cc
index 5f4d2d3a57235a9dbaef81b73d16814e0485d615..f341ce90bbd28c1a0d9e037bede3c2fc85df9f97 100644
--- a/chrome/installer/util/experiment_storage_unittest.cc
+++ b/chrome/installer/util/experiment_storage_unittest.cc
@@ -62,7 +62,7 @@ TEST_P(ExperimentStorageTest, TestEncodeDecodeMetrics) {
metrics.action_delay_bucket = 11;
metrics.session_length_bucket = 36;
base::string16 encoded_metrics(ExperimentStorage::EncodeMetrics(metrics));
- EXPECT_EQ(L"5BIMD4IA", encoded_metrics);
+ EXPECT_EQ(L"5BIMD2IA", encoded_metrics);
ExperimentMetrics decoded_metrics;
ASSERT_TRUE(
ExperimentStorage::DecodeMetrics(encoded_metrics, &decoded_metrics));
@@ -124,10 +124,9 @@ TEST_P(ExperimentStorageTest, TestEncodeDecodeForMin) {
TEST_P(ExperimentStorageTest, TestReadWriteParticipation) {
ExperimentStorage storage;
- ExperimentStorage::Participation expected =
- ExperimentStorage::Participation::kIsParticipating;
+ ExperimentStorage::Study expected = ExperimentStorage::kStudyOne;
ASSERT_TRUE(storage.AcquireLock()->WriteParticipation(expected));
- ExperimentStorage::Participation p;
+ ExperimentStorage::Study p;
ASSERT_TRUE(storage.AcquireLock()->ReadParticipation(&p));
EXPECT_EQ(expected, p);
}
@@ -166,7 +165,7 @@ TEST_P(ExperimentStorageTest, TestLoadStoreMetrics) {
ASSERT_TRUE(storage.AcquireLock()->StoreMetrics(metrics));
ExperimentMetrics stored_metrics;
ASSERT_TRUE(storage.AcquireLock()->LoadMetrics(&stored_metrics));
- EXPECT_EQ(L"5BIMD4IA", ExperimentStorage::EncodeMetrics(stored_metrics));
+ EXPECT_EQ(L"5BIMD2IA", ExperimentStorage::EncodeMetrics(stored_metrics));
// Verify that expeirment labels are stored in registry.
EXPECT_EQ(metrics, stored_metrics);
}
« no previous file with comments | « chrome/installer/util/experiment_storage.cc ('k') | chrome/tools/test/experiment_tool_win.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698