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

Unified Diff: components/update_client/updater_state_unittest.cc

Issue 2581353002: Use the Windows MDM API to check if the machine is being managed. (Closed)
Patch Set: Fix components tests Created 4 years 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 9d34ba5785df71c23cff9a580e7ee8a3925b31ca..92e846c0894289ceea14f417210d1bc8fd5351ff 100644
--- a/components/update_client/updater_state_unittest.cc
+++ b/components/update_client/updater_state_unittest.cc
@@ -26,7 +26,7 @@ TEST_F(UpdaterStateTest, Serialize) {
updater_state.updater_version_ = base::Version("1.0");
updater_state.last_autoupdate_started_ = base::Time::NowFromSystemTime();
updater_state.last_checked_ = base::Time::NowFromSystemTime();
- updater_state.is_joined_to_domain_ = false;
+ updater_state.is_enterprise_user_ = false;
updater_state.is_autoupdate_check_enabled_ = true;
updater_state.update_policy_ = 1;
@@ -88,7 +88,7 @@ TEST_F(UpdaterStateTest, Serialize) {
attributes = updater_state.BuildAttributes();
EXPECT_EQ(0u, attributes.count("lastchecked"));
- updater_state.is_joined_to_domain_ = true;
+ updater_state.is_enterprise_user_ = true;
attributes = updater_state.BuildAttributes();
EXPECT_STREQ("1", attributes.at("domainjoined").c_str());

Powered by Google App Engine
This is Rietveld 408576698