OLD | NEW |
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" | |
15 #include "chrome/browser/sidebar/sidebar_manager.h" | 14 #include "chrome/browser/sidebar/sidebar_manager.h" |
16 #include "chrome/common/chrome_switches.h" | 15 #include "chrome/common/chrome_switches.h" |
17 #include "chrome/common/pref_names.h" | 16 #include "chrome/common/pref_names.h" |
18 #include "chrome/common/url_constants.h" | 17 #include "chrome/common/url_constants.h" |
19 #include "chrome/test/in_process_browser_test.h" | 18 #include "chrome/test/in_process_browser_test.h" |
20 #include "chrome/test/ui_test_utils.h" | 19 #include "chrome/test/ui_test_utils.h" |
21 | 20 |
22 // Basic sanity check of ViewID use on the mac. | 21 // Basic sanity check of ViewID use on the mac. |
23 class ViewIDTest : public InProcessBrowserTest { | 22 class ViewIDTest : public InProcessBrowserTest { |
24 public: | 23 public: |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 CheckViewID(static_cast<ViewID>(VIEW_ID_TAB_0 + i), true); | 107 CheckViewID(static_cast<ViewID>(VIEW_ID_TAB_0 + i), true); |
109 // VIEW_ID_TAB_LAST should always be available. | 108 // VIEW_ID_TAB_LAST should always be available. |
110 CheckViewID(VIEW_ID_TAB_LAST, true); | 109 CheckViewID(VIEW_ID_TAB_LAST, true); |
111 } | 110 } |
112 | 111 |
113 // Open the 11th tab. | 112 // Open the 11th tab. |
114 browser()->OpenURL(GURL(chrome::kAboutBlankURL), GURL(), | 113 browser()->OpenURL(GURL(chrome::kAboutBlankURL), GURL(), |
115 NEW_BACKGROUND_TAB, PageTransition::TYPED); | 114 NEW_BACKGROUND_TAB, PageTransition::TYPED); |
116 CheckViewID(VIEW_ID_TAB_LAST, true); | 115 CheckViewID(VIEW_ID_TAB_LAST, true); |
117 } | 116 } |
OLD | NEW |