| Index: content/test/test_navigation_handle_factory.cc
|
| diff --git a/content/test/test_navigation_handle_factory.cc b/content/test/test_navigation_handle_factory.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c94de0569a95ca42193c91dd6c819f7f76ef6fc9
|
| --- /dev/null
|
| +++ b/content/test/test_navigation_handle_factory.cc
|
| @@ -0,0 +1,28 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "content/test/test_navigation_handle_factory.h"
|
| +
|
| +#include "content/test/test_navigation_handle.h"
|
| +
|
| +namespace content {
|
| +
|
| +TestNavigationHandleFactory::TestNavigationHandleFactory() {
|
| + NavigationHandleFactory::SetFactoryForTesting(this);
|
| +}
|
| +
|
| +TestNavigationHandleFactory::~TestNavigationHandleFactory() {
|
| + NavigationHandleFactory::SetFactoryForTesting(nullptr);
|
| +}
|
| +
|
| +scoped_ptr<NavigationHandleImpl> TestNavigationHandleFactory::CreateHandle(
|
| + const GURL& url,
|
| + const GURL& validated_url,
|
| + bool is_main_frame,
|
| + NavigatorDelegate* delegate) {
|
| + return scoped_ptr<NavigationHandleImpl>(TestNavigationHandle::Create(
|
| + url, validated_url, is_main_frame, delegate));
|
| +}
|
| +
|
| +} // namespace content
|
|
|