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

Unified Diff: chrome/browser/sync/sync_global_error_unittest.cc

Issue 2396893002: Enable the MD User Menu by default on trunk. (Closed)
Patch Set: Fix Unit Tests. Created 4 years, 2 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/sync/sync_global_error_unittest.cc
diff --git a/chrome/browser/sync/sync_global_error_unittest.cc b/chrome/browser/sync/sync_global_error_unittest.cc
index ec3a59c7806d8958a006c9016e335ccf9559fcfc..48cf0414091e83f5d999eaec2dd444901c2a9d47 100644
--- a/chrome/browser/sync/sync_global_error_unittest.cc
+++ b/chrome/browser/sync/sync_global_error_unittest.cc
@@ -16,6 +16,7 @@
#include "chrome/browser/ui/webui/signin/login_ui_service_factory.h"
#include "chrome/test/base/browser_with_test_window_test.h"
#include "chrome/test/base/testing_profile.h"
+#include "components/signin/core/common/profile_management_switches.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
#include "content/public/browser/notification_source.h"
@@ -123,6 +124,11 @@ void VerifySyncGlobalErrorResult(browser_sync::ProfileSyncServiceMock* service,
// Test that SyncGlobalError shows an error if a passphrase is required.
TEST_F(SyncGlobalErrorTest, PassphraseGlobalError) {
+ // The MD User Menu displays Sync errors in a different way and should be the
+ // only one to do so. Under that paradigm, this test is obsolete.
+ if (switches::IsMaterialDesignUserMenu())
+ return;
+
browser_sync::ProfileSyncServiceMock service(
CreateProfileSyncServiceParamsForTest(profile()));

Powered by Google App Engine
This is Rietveld 408576698