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

Unified Diff: chrome/browser/signin/signin_global_error_unittest.cc

Issue 2314913003: Deprecate HOSTED_NOT_ALLOWED auth error (Closed)
Patch Set: Add DEPRECATED count, remove HOSTED from all unit tests Created 4 years, 3 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: chrome/browser/signin/signin_global_error_unittest.cc
diff --git a/chrome/browser/signin/signin_global_error_unittest.cc b/chrome/browser/signin/signin_global_error_unittest.cc
index 610273a993e106f47febdc63c3c9833ac3d53ed0..539ae5e103e3667ef0e7547cec540cc2e8233c28 100644
--- a/chrome/browser/signin/signin_global_error_unittest.cc
+++ b/chrome/browser/signin/signin_global_error_unittest.cc
@@ -139,13 +139,14 @@ TEST_F(SigninGlobalErrorTest, AuthStatusEnumerateAllErrors) {
{ GoogleServiceAuthError::SERVICE_UNAVAILABLE, true },
{ GoogleServiceAuthError::TWO_FACTOR, true },
{ GoogleServiceAuthError::REQUEST_CANCELED, true },
- { GoogleServiceAuthError::HOSTED_NOT_ALLOWED, true },
{ GoogleServiceAuthError::UNEXPECTED_SERVICE_RESPONSE, true },
{ GoogleServiceAuthError::SERVICE_ERROR, true },
{ GoogleServiceAuthError::WEB_LOGIN_REQUIRED, true },
};
- static_assert(arraysize(table) == GoogleServiceAuthError::NUM_STATES,
- "table size should match number of auth error types");
+ static_assert(arraysize(table) ==
+ GoogleServiceAuthError::NUM_STATES -
+ GoogleServiceAuthError::NUM_DEPRECATED_STATES,
+ "table size should match number of auth error types");
// Mark the profile with an active timestamp so profile_metrics logs it.
testing_profile_manager()->UpdateLastUser(profile());

Powered by Google App Engine
This is Rietveld 408576698