Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / content / public / test / web_contents_tester.cc
blobb37e4303a03f46f8880bde6f13d5a7c7824201b2
1 // Copyright (c) 2012 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.
5 #include "content/public/test/web_contents_tester.h"
7 #include "content/test/test_web_contents.h"
9 namespace content {
11 namespace {
13 // The two subclasses here are instantiated via the deprecated
14 // CreateWebContentsFor... factories below.
16 } // namespace
18 // static
19 WebContentsTester* WebContentsTester::For(WebContents* contents) {
20 return static_cast<TestWebContents*>(contents);
23 // static
24 WebContents* WebContentsTester::CreateTestWebContents(
25 BrowserContext* browser_context,
26 SiteInstance* instance) {
27 return TestWebContents::Create(browser_context, instance);
30 // static
31 } // namespace content