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

Side by Side Diff: chrome/browser/gtk/view_id_util_browsertest.cc

Issue 5043001: Cleanup: Include browser.h -> ui/browser.h [Part 1]. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years, 1 month 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
« no previous file with comments | « chrome/browser/gtk/reload_button_gtk.cc ('k') | chrome/browser/history/history_browsertest.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 <gtk/gtk.h> 5 #include <gtk/gtk.h>
6 6
7 #include "chrome/browser/browser.h"
8 #include "chrome/browser/browser_window.h" 7 #include "chrome/browser/browser_window.h"
9 #include "chrome/browser/gtk/view_id_util.h" 8 #include "chrome/browser/gtk/view_id_util.h"
9 #include "chrome/browser/ui/browser.h"
10 #include "chrome/common/url_constants.h" 10 #include "chrome/common/url_constants.h"
11 #include "chrome/test/in_process_browser_test.h" 11 #include "chrome/test/in_process_browser_test.h"
12 12
13 class ViewIDTest : public InProcessBrowserTest { 13 class ViewIDTest : public InProcessBrowserTest {
14 public: 14 public:
15 ViewIDTest() : root_window_(NULL) {} 15 ViewIDTest() : root_window_(NULL) {}
16 16
17 void CheckViewID(ViewID id, bool should_have) { 17 void CheckViewID(ViewID id, bool should_have) {
18 if (!root_window_) 18 if (!root_window_)
19 root_window_ = GTK_WIDGET(browser()->window()->GetNativeHandle()); 19 root_window_ = GTK_WIDGET(browser()->window()->GetNativeHandle());
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 IN_PROC_BROWSER_TEST_F(ViewIDTest, Delegate) { 53 IN_PROC_BROWSER_TEST_F(ViewIDTest, Delegate) {
54 CheckViewID(VIEW_ID_TAB_0, true); 54 CheckViewID(VIEW_ID_TAB_0, true);
55 CheckViewID(VIEW_ID_TAB_1, false); 55 CheckViewID(VIEW_ID_TAB_1, false);
56 56
57 browser()->OpenURL(GURL(chrome::kAboutBlankURL), GURL(), 57 browser()->OpenURL(GURL(chrome::kAboutBlankURL), GURL(),
58 NEW_BACKGROUND_TAB, PageTransition::TYPED); 58 NEW_BACKGROUND_TAB, PageTransition::TYPED);
59 59
60 CheckViewID(VIEW_ID_TAB_0, true); 60 CheckViewID(VIEW_ID_TAB_0, true);
61 CheckViewID(VIEW_ID_TAB_1, true); 61 CheckViewID(VIEW_ID_TAB_1, true);
62 } 62 }
OLDNEW
« no previous file with comments | « chrome/browser/gtk/reload_button_gtk.cc ('k') | chrome/browser/history/history_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698