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

Side by Side Diff: chrome/browser/cocoa/view_id_util_browsertest.mm

Issue 3296003: FBTF: Move the TabRestoreService::Observer into its own file. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: More mac fixes Created 10 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
« no previous file with comments | « chrome/browser/cocoa/history_menu_bridge.mm ('k') | chrome/browser/dom_ui/new_tab_ui.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "base/command_line.h" 5 #include "base/command_line.h"
6 #include "base/logging.h" 6 #include "base/logging.h"
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "chrome/browser/bookmarks/bookmark_model.h" 8 #include "chrome/browser/bookmarks/bookmark_model.h"
9 #include "chrome/browser/browser.h" 9 #include "chrome/browser/browser.h"
10 #include "chrome/browser/browser_window.h" 10 #include "chrome/browser/browser_window.h"
11 #include "chrome/browser/cocoa/view_id_util.h" 11 #include "chrome/browser/cocoa/view_id_util.h"
12 #include "chrome/browser/download/download_shelf.h" 12 #include "chrome/browser/download/download_shelf.h"
13 #include "chrome/browser/prefs/pref_service.h" 13 #include "chrome/browser/prefs/pref_service.h"
14 #include "chrome/browser/profile.h"
14 #include "chrome/browser/sidebar/sidebar_manager.h" 15 #include "chrome/browser/sidebar/sidebar_manager.h"
15 #include "chrome/common/chrome_switches.h" 16 #include "chrome/common/chrome_switches.h"
16 #include "chrome/common/pref_names.h" 17 #include "chrome/common/pref_names.h"
17 #include "chrome/common/url_constants.h" 18 #include "chrome/common/url_constants.h"
18 #include "chrome/test/in_process_browser_test.h" 19 #include "chrome/test/in_process_browser_test.h"
19 #include "chrome/test/ui_test_utils.h" 20 #include "chrome/test/ui_test_utils.h"
20 21
21 // Basic sanity check of ViewID use on the mac. 22 // Basic sanity check of ViewID use on the mac.
22 class ViewIDTest : public InProcessBrowserTest { 23 class ViewIDTest : public InProcessBrowserTest {
23 public: 24 public:
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 CheckViewID(static_cast<ViewID>(VIEW_ID_TAB_0 + i), true); 108 CheckViewID(static_cast<ViewID>(VIEW_ID_TAB_0 + i), true);
108 // VIEW_ID_TAB_LAST should always be available. 109 // VIEW_ID_TAB_LAST should always be available.
109 CheckViewID(VIEW_ID_TAB_LAST, true); 110 CheckViewID(VIEW_ID_TAB_LAST, true);
110 } 111 }
111 112
112 // Open the 11th tab. 113 // Open the 11th tab.
113 browser()->OpenURL(GURL(chrome::kAboutBlankURL), GURL(), 114 browser()->OpenURL(GURL(chrome::kAboutBlankURL), GURL(),
114 NEW_BACKGROUND_TAB, PageTransition::TYPED); 115 NEW_BACKGROUND_TAB, PageTransition::TYPED);
115 CheckViewID(VIEW_ID_TAB_LAST, true); 116 CheckViewID(VIEW_ID_TAB_LAST, true);
116 } 117 }
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/history_menu_bridge.mm ('k') | chrome/browser/dom_ui/new_tab_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698