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

Side by Side Diff: chrome/browser/ui/bookmarks/bookmark_bubble_sign_in_delegate_unittest.cc

Issue 24012002: Move Range code to gfx. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: d Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/bookmarks/bookmark_bubble_sign_in_delegate.h" 5 #include "chrome/browser/ui/bookmarks/bookmark_bubble_sign_in_delegate.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "chrome/browser/ui/bookmarks/bookmark_bubble_delegate.h" 9 #include "chrome/browser/ui/bookmarks/bookmark_bubble_delegate.h"
10 #include "chrome/browser/ui/browser.h" 10 #include "chrome/browser/ui/browser.h"
11 #include "chrome/browser/ui/browser_list.h" 11 #include "chrome/browser/ui/browser_list.h"
12 #include "chrome/browser/ui/tabs/tab_strip_model.h" 12 #include "chrome/browser/ui/tabs/tab_strip_model.h"
13 #include "chrome/test/base/browser_with_test_window_test.h" 13 #include "chrome/test/base/browser_with_test_window_test.h"
14 #include "chrome/test/base/testing_profile.h" 14 #include "chrome/test/base/testing_profile.h"
15 #include "ui/base/events/event_constants.h" 15 #include "ui/base/events/event_constants.h"
16 #include "ui/base/range/range.h" 16 #include "ui/gfx/range/range.h"
17 17
18 class BookmarkBubbleSignInDelegateTest : public BrowserWithTestWindowTest { 18 class BookmarkBubbleSignInDelegateTest : public BrowserWithTestWindowTest {
19 public: 19 public:
20 BookmarkBubbleSignInDelegateTest() {} 20 BookmarkBubbleSignInDelegateTest() {}
21 21
22 protected: 22 protected:
23 class Window : public TestBrowserWindow { 23 class Window : public TestBrowserWindow {
24 public: 24 public:
25 Window() : show_count_(0) {} 25 Window() : show_count_(0) {}
26 26
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 // visible. 133 // visible.
134 int tab_count = extra_browser->tab_strip_model()->count(); 134 int tab_count = extra_browser->tab_strip_model()->count();
135 EXPECT_EQ(starting_tab_count + 1, tab_count); 135 EXPECT_EQ(starting_tab_count + 1, tab_count);
136 EXPECT_EQ(1, 136 EXPECT_EQ(1,
137 static_cast<BookmarkBubbleSignInDelegateTest::Window*>( 137 static_cast<BookmarkBubbleSignInDelegateTest::Window*>(
138 extra_window.get())->show_count()); 138 extra_window.get())->show_count());
139 139
140 // Required to avoid a crash when the browser is deleted. 140 // Required to avoid a crash when the browser is deleted.
141 extra_browser->tab_strip_model()->CloseAllTabs(); 141 extra_browser->tab_strip_model()->CloseAllTabs();
142 } 142 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698