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

Issue 730553002: PlzNavigate: Refactor unit test helper functions (Closed)

Created:
6 years, 1 month ago by clamy
Modified:
6 years, 1 month ago
Reviewers:
carlosk, davidben, nasko
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

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 Committed: https://crrev.com/72c7279ae8a307aba091bafc188cebd97a33b899 Cr-Commit-Position: refs/heads/master@{#304640}

Patch Set 1 #

Total comments: 34

Patch Set 2 : Addressed Nasko's comments #

Total comments: 2

Patch Set 3 : Removed the test utils class #

Unified diffs Side-by-side diffs Delta from patch set Stats (+343 lines, -143 lines) Patch
M content/browser/frame_host/navigator_impl.h View 1 1 chunk +6 lines, -1 line 0 comments Download
M content/browser/frame_host/navigator_impl.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigator_impl_unittest.cc View 1 2 14 chunks +18 lines, -141 lines 0 comments Download
M content/browser/loader/navigation_url_loader.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
A content/test/browser_side_navigation_test_utils.h View 1 2 1 chunk +33 lines, -0 lines 0 comments Download
A content/test/browser_side_navigation_test_utils.cc View 1 2 1 chunk +73 lines, -0 lines 0 comments Download
A content/test/test_navigation_url_loader.h View 1 2 1 chunk +59 lines, -0 lines 0 comments Download
A content/test/test_navigation_url_loader.cc View 1 chunk +40 lines, -0 lines 0 comments Download
A content/test/test_navigation_url_loader_factory.h View 1 2 1 chunk +41 lines, -0 lines 0 comments Download
A content/test/test_navigation_url_loader_factory.cc View 1 chunk +31 lines, -0 lines 0 comments Download
M content/test/test_web_contents.cc View 1 2 3 chunks +29 lines, -1 line 0 comments Download

Messages

Total messages: 13 (2 generated)
clamy
@carlosk, davidben, nasko: PTAL. This is a refactoring of our unit tests so that TestWebContents::NavigateAndCommit ...
6 years, 1 month ago (2014-11-14 15:45:26 UTC) #2
nasko
Thanks for refactoring this! A few comments and questions. Also, please put a bug number ...
6 years, 1 month ago (2014-11-15 00:32:51 UTC) #3
carlosk
Looking good. https://chromiumcodereview.appspot.com/730553002/diff/1/content/test/browser_side_navigation_test_utils.cc File content/test/browser_side_navigation_test_utils.cc (right): https://chromiumcodereview.appspot.com/730553002/diff/1/content/test/browser_side_navigation_test_utils.cc#newcode21 content/test/browser_side_navigation_test_utils.cc:21: base::LazyInstance<scoped_ptr<BrowserSideNavigationTestUtils>> As we need to define an ...
6 years, 1 month ago (2014-11-17 10:46:56 UTC) #4
clamy
Thanks! https://chromiumcodereview.appspot.com/730553002/diff/1/content/browser/frame_host/navigator_impl.h File content/browser/frame_host/navigator_impl.h (right): https://chromiumcodereview.appspot.com/730553002/diff/1/content/browser/frame_host/navigator_impl.h#newcode41 content/browser/frame_host/navigator_impl.h:41: FrameTreeNode* frame_tree_node); On 2014/11/15 00:32:51, nasko wrote: > ...
6 years, 1 month ago (2014-11-17 12:51:13 UTC) #5
nasko
Just one minor comment, which I'm not certain about. I think it is good to ...
6 years, 1 month ago (2014-11-17 22:40:02 UTC) #6
clamy
Thanks. I have uploaded a new version which removes the class. Let me know what ...
6 years, 1 month ago (2014-11-18 12:33:22 UTC) #7
carlosk
LGTM
6 years, 1 month ago (2014-11-18 12:41:34 UTC) #8
nasko
LGTM
6 years, 1 month ago (2014-11-18 17:10:21 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/730553002/40001
6 years, 1 month ago (2014-11-18 17:18:50 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:40001)
6 years, 1 month ago (2014-11-18 18:09:54 UTC) #12
commit-bot: I haz the power
6 years, 1 month ago (2014-11-18 18:10:49 UTC) #13
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/72c7279ae8a307aba091bafc188cebd97a33b899
Cr-Commit-Position: refs/heads/master@{#304640}

Powered by Google App Engine
This is Rietveld 408576698