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

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: rebased Created 3 years, 10 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..e36c2c65f7074c4d05ecd89a6309bb3f118d18e8 100644
--- a/components/update_client/updater_state_unittest.cc
+++ b/components/update_client/updater_state_unittest.cc
@@ -27,7 +27,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_managed_ = false;
updater_state.is_autoupdate_check_enabled_ = true;
updater_state.update_policy_ = 1;
@@ -89,7 +89,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_managed_ = true;
attributes = updater_state.BuildAttributes();
EXPECT_STREQ("1", attributes.at("domainjoined").c_str());

Powered by Google App Engine
This is Rietveld 408576698