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

Side by Side Diff: content/public/test/navigation_simulator.cc

Issue 2682313002: Introduce NavigationSimulator to use in unit tests (Closed)
Patch Set: Added same-page navigation simulation Created 3 years, 10 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
(Empty)
1 // Copyright 2017 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 "content/public/test/navigation_simulator.h"
6
7 #include "base/memory/ptr_util.h"
8 #include "content/public/browser/render_frame_host.h"
9 #include "content/test/navigation_simulator_impl.h"
10 #include "content/test/test_render_frame_host.h"
11
12 namespace content {
13
14 // static
15 std::unique_ptr<NavigationSimulator>
16 NavigationSimulator::CreateRendererInitiated(
17 const GURL& original_url,
18 RenderFrameHost* render_frame_host) {
19 return base::MakeUnique<NavigationSimulatorImpl>(
20 original_url, static_cast<TestRenderFrameHost*>(render_frame_host));
21 }
22
23 NavigationSimulator::~NavigationSimulator() {}
24
25 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698