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

Unified Diff: chrome/browser/policy/enterprise_install_attributes_unittest.cc

Issue 10443125: Allow re-enrollment to the same domain in case of policy data loss. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments. Created 8 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/browser/policy/enterprise_install_attributes.cc ('k') | chrome/browser/policy/enterprise_metrics.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/enterprise_install_attributes_unittest.cc
diff --git a/chrome/browser/policy/enterprise_install_attributes_unittest.cc b/chrome/browser/policy/enterprise_install_attributes_unittest.cc
index a8494a7e3b1a67fc73aec467b26458b61f558722..b22591492a6ed9bf40d3be73672c0c45ec0239c4 100644
--- a/chrome/browser/policy/enterprise_install_attributes_unittest.cc
+++ b/chrome/browser/policy/enterprise_install_attributes_unittest.cc
@@ -39,11 +39,18 @@ TEST_F(EnterpriseInstallAttributesTest, Lock) {
kTestUser,
DEVICE_MODE_ENTERPRISE,
kTestDeviceId));
- EXPECT_EQ(EnterpriseInstallAttributes::LOCK_WRONG_USER,
+ // Another user from the4 same domain should also succeed.
+ EXPECT_EQ(EnterpriseInstallAttributes::LOCK_SUCCESS,
install_attributes_.LockDevice(
"test1@example.com",
DEVICE_MODE_ENTERPRISE,
kTestDeviceId));
+ // But another domain should fail.
+ EXPECT_EQ(EnterpriseInstallAttributes::LOCK_WRONG_USER,
+ install_attributes_.LockDevice(
+ "test@bluebears.com",
+ DEVICE_MODE_ENTERPRISE,
+ kTestDeviceId));
}
TEST_F(EnterpriseInstallAttributesTest, IsEnterpriseDevice) {
« no previous file with comments | « chrome/browser/policy/enterprise_install_attributes.cc ('k') | chrome/browser/policy/enterprise_metrics.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698