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

Unified Diff: chrome/browser/ui/cocoa/bookmarks/bookmark_sync_promo_controller_unittest.mm

Issue 1307093004: Remove references to IsNewAvatarMenu since the flag was removed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review feedback Created 5 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
« no previous file with comments | « chrome/browser/ui/chrome_pages.cc ('k') | chrome/browser/ui/cocoa/browser_window_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/bookmarks/bookmark_sync_promo_controller_unittest.mm
diff --git a/chrome/browser/ui/cocoa/bookmarks/bookmark_sync_promo_controller_unittest.mm b/chrome/browser/ui/cocoa/bookmarks/bookmark_sync_promo_controller_unittest.mm
deleted file mode 100644
index 2a82c2f543fcbd8a741c91d2913b53f38a0ae8da..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/cocoa/bookmarks/bookmark_sync_promo_controller_unittest.mm
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#import "chrome/browser/ui/cocoa/bookmarks/bookmark_sync_promo_controller.h"
-
-#import <Cocoa/Cocoa.h>
-
-#include "base/basictypes.h"
-#include "base/command_line.h"
-#include "base/mac/scoped_nsobject.h"
-#include "chrome/browser/extensions/extension_service.h"
-#include "chrome/browser/extensions/test_extension_system.h"
-#include "chrome/browser/ui/browser.h"
-#include "chrome/browser/ui/tabs/tab_strip_model.h"
-#include "chrome/test/base/browser_with_test_window_test.h"
-#include "components/signin/core/common/profile_management_switches.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace {
-
-class BookmarkSyncPromoControllerTest : public BrowserWithTestWindowTest {
- public:
- void SetUp() override {
- switches::DisableNewAvatarMenuForTesting(
- base::CommandLine::ForCurrentProcess());
- BrowserWithTestWindowTest::SetUp();
- ASSERT_TRUE(profile());
- // Adds TestExtensionSystem, since signin uses the gaia auth extension.
- static_cast<extensions::TestExtensionSystem*>(
- extensions::ExtensionSystem::Get(profile()))
- ->CreateExtensionService(base::CommandLine::ForCurrentProcess(),
- base::FilePath(), false);
- }
-};
-
-TEST_F(BookmarkSyncPromoControllerTest, SignInLink) {
- int starting_tab_count = browser()->tab_strip_model()->count();
-
- base::scoped_nsobject<BookmarkSyncPromoController> syncPromo(
- [[BookmarkSyncPromoController alloc] initWithBrowser:browser()]);
-
- // Simulate clicking the "Sign in" link.
- [syncPromo textView:nil clickedOnLink:nil atIndex:0u];
-
- // A new tab should have been opened.
- int tab_count = browser()->tab_strip_model()->count();
- EXPECT_EQ(starting_tab_count + 1, tab_count);
-}
-
-} // namespace
« no previous file with comments | « chrome/browser/ui/chrome_pages.cc ('k') | chrome/browser/ui/cocoa/browser_window_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698