Commit e3dc9a3b authored by David Roger's avatar David Roger Committed by Commit Bot

[signin] Enforce that either Dice or Mirror is enabled

Change-Id: I55ddd99da9115affc449f4f2f9fb5a0539c1171a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1924477
Commit-Queue: David Roger <droger@chromium.org>
Reviewed-by: default avatarMonica Basta <msalama@chromium.org>
Cr-Commit-Position: refs/heads/master@{#717671}
parent 280e8aa1
......@@ -58,12 +58,7 @@ TEST(AccountConsistencyModeManagerTest, DefaultValue) {
EXPECT_TRUE(
AccountConsistencyModeManager::IsDiceEnabledForProfile(profile.get()));
#else
EXPECT_EQ(signin::AccountConsistencyMethod::kDisabled,
AccountConsistencyModeManager::GetMethodForProfile(profile.get()));
EXPECT_FALSE(
AccountConsistencyModeManager::IsMirrorEnabledForProfile(profile.get()));
EXPECT_FALSE(
AccountConsistencyModeManager::IsDiceEnabledForProfile(profile.get()));
#error Either Dice or Mirror should be enabled
#endif
}
......
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