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

Side by Side Diff: chrome/renderer/chrome_content_renderer_client_browsertest.cc

Issue 231793004: Update a few more references to WebFrame to use WebLocalFrame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase again Created 6 years, 8 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/renderer/chrome_content_renderer_client.h" 5 #include "chrome/renderer/chrome_content_renderer_client.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "chrome/common/chrome_switches.h" 10 #include "chrome/common/chrome_switches.h"
11 #include "chrome/common/render_messages.h" 11 #include "chrome/common/render_messages.h"
12 #include "chrome/renderer/chrome_content_renderer_client.h" 12 #include "chrome/renderer/chrome_content_renderer_client.h"
13 #include "chrome/test/base/chrome_render_view_test.h" 13 #include "chrome/test/base/chrome_render_view_test.h"
14 #include "third_party/WebKit/public/web/WebLocalFrame.h"
14 #include "url/gurl.h" 15 #include "url/gurl.h"
15 16
16 typedef ChromeRenderViewTest InstantProcessNavigationTest; 17 typedef ChromeRenderViewTest InstantProcessNavigationTest;
17 18
18 // Tests that renderer-initiated navigations from an Instant render process get 19 // Tests that renderer-initiated navigations from an Instant render process get
19 // bounced back to the browser to be rebucketed into a non-Instant renderer if 20 // bounced back to the browser to be rebucketed into a non-Instant renderer if
20 // necessary. 21 // necessary.
21 TEST_F(InstantProcessNavigationTest, ForkForNavigationsFromInstantProcess) { 22 TEST_F(InstantProcessNavigationTest, ForkForNavigationsFromInstantProcess) {
22 CommandLine::ForCurrentProcess()->AppendSwitch(switches::kInstantProcess); 23 CommandLine::ForCurrentProcess()->AppendSwitch(switches::kInstantProcess);
23 bool unused; 24 bool unused;
(...skipping 20 matching lines...) Expand all
44 EXPECT_TRUE(client->ShouldFork( 45 EXPECT_TRUE(client->ShouldFork(
45 GetMainFrame(), GURL("http://example.com/newtab"), "GET", false, false, 46 GetMainFrame(), GURL("http://example.com/newtab"), "GET", false, false,
46 &unused)); 47 &unused));
47 EXPECT_TRUE(client->ShouldFork( 48 EXPECT_TRUE(client->ShouldFork(
48 GetMainFrame(), GURL("http://example.com/search?q=foo"), "GET", false, 49 GetMainFrame(), GURL("http://example.com/search?q=foo"), "GET", false,
49 false, &unused)); 50 false, &unused));
50 EXPECT_FALSE(client->ShouldFork( 51 EXPECT_FALSE(client->ShouldFork(
51 GetMainFrame(), GURL("http://example.com/"), "GET", false, false, 52 GetMainFrame(), GURL("http://example.com/"), "GET", false, false,
52 &unused)); 53 &unused));
53 } 54 }
OLDNEW
« no previous file with comments | « chrome/renderer/autofill/form_autofill_browsertest.cc ('k') | chrome/renderer/extensions/app_bindings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698