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

Side by Side Diff: chrome/browser/renderer_host/render_view_host_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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/browser/renderer_host/test_render_view_host.h"
6 #include "chrome/browser/tab_contents/navigation_entry.h"
7
8 class RenderViewHostTest : public RenderViewHostTestHarness {
9 };
10
11 // All about URLs reported by the renderer should get rewritten to about:blank.
12 // See RenderViewHost::OnMsgNavigate for a discussion.
13 TEST_F(RenderViewHostTest, FilterAbout) {
14 rvh()->SendNavigate(1, GURL("about:cache"));
15 ASSERT_TRUE(controller().GetActiveEntry());
16 EXPECT_EQ(GURL("about:blank"), controller().GetActiveEntry()->url());
17 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698