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

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

Issue 562603002: Move PageTransition from //content/public/common to //ui/base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/command_line.h" 6 #include "base/command_line.h"
7 #include "base/prefs/pref_service.h" 7 #include "base/prefs/pref_service.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "chrome/browser/bookmarks/bookmark_model_factory.h" 9 #include "chrome/browser/bookmarks/bookmark_model_factory.h"
10 #include "chrome/browser/devtools/devtools_window_testing.h" 10 #include "chrome/browser/devtools/devtools_window_testing.h"
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 IN_PROC_BROWSER_TEST_F(ViewIDTest, Tab) { 105 IN_PROC_BROWSER_TEST_F(ViewIDTest, Tab) {
106 CheckViewID(VIEW_ID_TAB_0, true); 106 CheckViewID(VIEW_ID_TAB_0, true);
107 CheckViewID(VIEW_ID_TAB_LAST, true); 107 CheckViewID(VIEW_ID_TAB_LAST, true);
108 108
109 // Open 9 new tabs. 109 // Open 9 new tabs.
110 for (int i = 1; i <= 9; ++i) { 110 for (int i = 1; i <= 9; ++i) {
111 CheckViewID(static_cast<ViewID>(VIEW_ID_TAB_0 + i), false); 111 CheckViewID(static_cast<ViewID>(VIEW_ID_TAB_0 + i), false);
112 browser()->OpenURL(OpenURLParams(GURL(url::kAboutBlankURL), 112 browser()->OpenURL(OpenURLParams(GURL(url::kAboutBlankURL),
113 Referrer(), 113 Referrer(),
114 NEW_BACKGROUND_TAB, 114 NEW_BACKGROUND_TAB,
115 content::PAGE_TRANSITION_TYPED, 115 ui::PAGE_TRANSITION_TYPED,
116 false)); 116 false));
117 CheckViewID(static_cast<ViewID>(VIEW_ID_TAB_0 + i), true); 117 CheckViewID(static_cast<ViewID>(VIEW_ID_TAB_0 + i), true);
118 // VIEW_ID_TAB_LAST should always be available. 118 // VIEW_ID_TAB_LAST should always be available.
119 CheckViewID(VIEW_ID_TAB_LAST, true); 119 CheckViewID(VIEW_ID_TAB_LAST, true);
120 } 120 }
121 121
122 // Open the 11th tab. 122 // Open the 11th tab.
123 browser()->OpenURL(OpenURLParams(GURL(url::kAboutBlankURL), 123 browser()->OpenURL(OpenURLParams(GURL(url::kAboutBlankURL),
124 Referrer(), 124 Referrer(),
125 NEW_BACKGROUND_TAB, 125 NEW_BACKGROUND_TAB,
126 content::PAGE_TRANSITION_TYPED, 126 ui::PAGE_TRANSITION_TYPED,
127 false)); 127 false));
128 CheckViewID(VIEW_ID_TAB_LAST, true); 128 CheckViewID(VIEW_ID_TAB_LAST, true);
129 } 129 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/toolbar/toolbar_controller.mm ('k') | chrome/browser/ui/cocoa/web_dialog_window_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698