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

Unified Diff: components/update_client/updater_state_unittest.cc

Issue 2862723002: Add updater state for Mac. (Closed)
Patch Set: Scoped pointers for NSObject instances; removed a memory leak when reading different type. Created 3 years, 7 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
Index: components/update_client/updater_state_unittest.cc
diff --git a/components/update_client/updater_state_unittest.cc b/components/update_client/updater_state_unittest.cc
index 9fb5f5bda92333021cc8c5fd7bf3596e090e7cec..369dae6e09150b949055d654436a68e27cf19967 100644
--- a/components/update_client/updater_state_unittest.cc
+++ b/components/update_client/updater_state_unittest.cc
@@ -42,9 +42,13 @@ TEST_F(UpdaterStateTest, Serialize) {
EXPECT_STREQ("1", attributes.at("autoupdatecheckenabled").c_str());
EXPECT_STREQ("1", attributes.at("updatepolicy").c_str());
-#if defined(GOOGLE_CHROME_BUILD) && defined(OS_WIN)
- // The name of the Windows updater for Chrome.
- EXPECT_STREQ("Omaha", UpdaterState::GetState(false)->at("name").c_str());
+#if defined(GOOGLE_CHROME_BUILD)
+ #if defined(OS_WIN)
+ // The name of the Windows updater for Chrome.
+ EXPECT_STREQ("Omaha", UpdaterState::GetState(false)->at("name").c_str());
+ #elif defined(OS_MACOSX)
+ EXPECT_STREQ("Keystone", UpdaterState::GetState(false)->at("name").c_str());
+ #endif
#endif // GOOGLE_CHROME_BUILD
// Tests some of the remaining values.

Powered by Google App Engine
This is Rietveld 408576698