PlzNavigate: Refactor unit test helper functions
commit72c7279ae8a307aba091bafc188cebd97a33b899
authorclamy <clamy@chromium.org>
Tue, 18 Nov 2014 18:09:46 +0000 (18 10:09 -0800)
committerCommit bot <commit-bot@chromium.org>
Tue, 18 Nov 2014 18:10:15 +0000 (18 18:10 +0000)
tree0174735b324ed7a8d082c3fd2a21a0ed28395e9a
parent41d49ec521d00ccbc075ddcbef4578d341176856
PlzNavigate: Refactor unit test helper functions

This CL extracts unit test helper classes from navigator_impl_unittests so that
they can be used in other places. It also makes
TestWebContents::NavigateAndCommit work when browser side navigation is
enabled.

PlzNavigate: improve unit test helper functions

BUG=434383

Review URL: https://codereview.chromium.org/730553002

Cr-Commit-Position: refs/heads/master@{#304640}
12 files changed:
content/browser/frame_host/navigator_impl.cc
content/browser/frame_host/navigator_impl.h
content/browser/frame_host/navigator_impl_unittest.cc
content/browser/loader/navigation_url_loader.cc
content/content_tests.gypi
content/test/browser_side_navigation_test_utils.cc [new file with mode: 0644]
content/test/browser_side_navigation_test_utils.h [new file with mode: 0644]
content/test/test_navigation_url_loader.cc [new file with mode: 0644]
content/test/test_navigation_url_loader.h [new file with mode: 0644]
content/test/test_navigation_url_loader_factory.cc [new file with mode: 0644]
content/test/test_navigation_url_loader_factory.h [new file with mode: 0644]
content/test/test_web_contents.cc