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/logging.h" | 5 #include "base/logging.h" |
6 #include "base/utf_string_conversions.h" | 6 #include "base/utf_string_conversions.h" |
7 #include "chrome/browser/bookmarks/bookmark_model.h" | 7 #include "chrome/browser/bookmarks/bookmark_model.h" |
8 #include "chrome/browser/browser.h" | 8 #include "chrome/browser/browser.h" |
9 #include "chrome/browser/browser_window.h" | 9 #include "chrome/browser/browser_window.h" |
10 #include "chrome/browser/cocoa/view_id_util.h" | 10 #include "chrome/browser/cocoa/view_id_util.h" |
11 #include "chrome/browser/download/download_shelf.h" | 11 #include "chrome/browser/download/download_shelf.h" |
12 #include "chrome/browser/pref_service.h" | 12 #include "chrome/browser/prefs/pref_service.h" |
13 #include "chrome/common/pref_names.h" | 13 #include "chrome/common/pref_names.h" |
14 #include "chrome/common/url_constants.h" | 14 #include "chrome/common/url_constants.h" |
15 #include "chrome/test/in_process_browser_test.h" | 15 #include "chrome/test/in_process_browser_test.h" |
16 #include "chrome/test/ui_test_utils.h" | 16 #include "chrome/test/ui_test_utils.h" |
17 | 17 |
18 // Basic sanity check of ViewID use on the mac. | 18 // Basic sanity check of ViewID use on the mac. |
19 class ViewIDTest : public InProcessBrowserTest { | 19 class ViewIDTest : public InProcessBrowserTest { |
20 public: | 20 public: |
21 ViewIDTest() : root_window_(nil) {} | 21 ViewIDTest() : root_window_(nil) {} |
22 | 22 |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 CheckViewID(static_cast<ViewID>(VIEW_ID_TAB_0 + i), true); | 95 CheckViewID(static_cast<ViewID>(VIEW_ID_TAB_0 + i), true); |
96 // VIEW_ID_TAB_LAST should always be available. | 96 // VIEW_ID_TAB_LAST should always be available. |
97 CheckViewID(VIEW_ID_TAB_LAST, true); | 97 CheckViewID(VIEW_ID_TAB_LAST, true); |
98 } | 98 } |
99 | 99 |
100 // Open the 11th tab. | 100 // Open the 11th tab. |
101 browser()->OpenURL(GURL(chrome::kAboutBlankURL), GURL(), | 101 browser()->OpenURL(GURL(chrome::kAboutBlankURL), GURL(), |
102 NEW_BACKGROUND_TAB, PageTransition::TYPED); | 102 NEW_BACKGROUND_TAB, PageTransition::TYPED); |
103 CheckViewID(VIEW_ID_TAB_LAST, true); | 103 CheckViewID(VIEW_ID_TAB_LAST, true); |
104 } | 104 } |
OLD | NEW |