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

Side by Side Diff: chrome/browser/dom_ui/dom_ui_unittest.cc

Issue 155071: Do some refactoring of renderer_host.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "chrome/browser/dom_ui/new_tab_ui.h" 5 #include "chrome/browser/dom_ui/new_tab_ui.h"
6 #include "chrome/browser/renderer_host/test_render_view_host.h" 6 #include "chrome/browser/renderer_host/test/test_render_view_host.h"
7 #include "chrome/common/url_constants.h" 7 #include "chrome/common/url_constants.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 9
10 class DOMUITest : public RenderViewHostTestHarness { 10 class DOMUITest : public RenderViewHostTestHarness {
11 public: 11 public:
12 DOMUITest() {} 12 DOMUITest() {}
13 13
14 // Tests navigating with a DOM UI from a fresh (nothing pending or committed) 14 // Tests navigating with a DOM UI from a fresh (nothing pending or committed)
15 // state, through pending, committed, then another navigation. The first page 15 // state, through pending, committed, then another navigation. The first page
16 // ID that we should use is passed as a parameter. We'll use the next two 16 // ID that we should use is passed as a parameter. We'll use the next two
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 // Start a pending load for a DOMUI. 131 // Start a pending load for a DOMUI.
132 GURL new_tab_url(chrome::kChromeUINewTabURL); 132 GURL new_tab_url(chrome::kChromeUINewTabURL);
133 controller().LoadURL(new_tab_url, GURL(), PageTransition::LINK); 133 controller().LoadURL(new_tab_url, GURL(), PageTransition::LINK);
134 EXPECT_FALSE(contents()->ShouldDisplayURL()); 134 EXPECT_FALSE(contents()->ShouldDisplayURL());
135 EXPECT_TRUE(contents()->ShouldDisplayFavIcon()); 135 EXPECT_TRUE(contents()->ShouldDisplayFavIcon());
136 EXPECT_FALSE(contents()->IsBookmarkBarAlwaysVisible()); 136 EXPECT_FALSE(contents()->IsBookmarkBarAlwaysVisible());
137 EXPECT_TRUE(contents()->FocusLocationBarByDefault()); 137 EXPECT_TRUE(contents()->FocusLocationBarByDefault());
138 138
139 // Committing DOM UI is tested above. 139 // Committing DOM UI is tested above.
140 } 140 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698