Commit 8fe2c8ab authored by Xiaoling Bao's avatar Xiaoling Bao Committed by Commit Bot

Fix build break on MacOS

Bug: 615187
Change-Id: I843a790e5a0000d9ca8a981b734c5891f54577c8
Reviewed-on: https://chromium-review.googlesource.com/934977Reviewed-by: default avatarSorin Jianu <sorin@chromium.org>
Commit-Queue: Xiaoling Bao <xiaolingbao@chromium.org>
Cr-Commit-Position: refs/heads/master@{#538863}
parent cba7d226
...@@ -52,8 +52,8 @@ TEST_F(UpdaterStateTest, Serialize) { ...@@ -52,8 +52,8 @@ TEST_F(UpdaterStateTest, Serialize) {
EXPECT_STREQ("Omaha", UpdaterState::GetState(false)->at("name").c_str()); EXPECT_STREQ("Omaha", UpdaterState::GetState(false)->at("name").c_str());
#elif defined(OS_MACOSX) && !defined(OS_IOS) #elif defined(OS_MACOSX) && !defined(OS_IOS)
// MacOS does not serialize "ismachine". // MacOS does not serialize "ismachine".
EXPECT(0, UpdaterState::GetState(false).count("ismachine")); EXPECT_EQ(0UL, UpdaterState::GetState(false)->count("ismachine"));
EXPECT(0, UpdaterState::GetState(true).count("ismachine")); EXPECT_EQ(0UL, UpdaterState::GetState(true)->count("ismachine"));
EXPECT_STREQ("Keystone", UpdaterState::GetState(false)->at("name").c_str()); EXPECT_STREQ("Keystone", UpdaterState::GetState(false)->at("name").c_str());
#endif // OS_WIN #endif // OS_WIN
#endif // GOOGLE_CHROME_BUILD #endif // GOOGLE_CHROME_BUILD
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment