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

Issue 2644933002: [TTS] Fix a test that's failing with PlzNavigate enabled. (Closed)

Created:
3 years, 11 months ago by Donn Denman
Modified:
3 years, 11 months ago
Reviewers:
Theresa
CC:
chromium-reviews, twellington+watch_chromium.org, donnd+watch_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[TTS] Fix a test that's failing with PlzNavigate enabled. Fix ContextualSearchManagerTest_testPrefetchFailoverRequestMadeAfterOpen failing with PlzNavigate. When we simulate a navigation failure we follow that with a call to stop navigation. This causes NavigationHandleImpl::GetPageTransition to fail an assert because the navigation has not actually started yet, due to the way we partially fake navigation in tests. This CL vectors stopping the navigation through our NetworkCommunicator, since network control actions should not run live in tests. BUG=674303 Review-Url: https://codereview.chromium.org/2644933002 Cr-Commit-Position: refs/heads/master@{#444860} Committed: https://chromium.googlesource.com/chromium/src/+/51787340a7c9f2c1c84a522f7dc8ac0b4025440f

Patch Set 1 #

Total comments: 2

Patch Set 2 : Just changed an @code to an @link. #

Patch Set 3 : Decided to change back to @code in the comment. #

Messages

Total messages: 14 (9 generated)
Donn Denman
Theresa, PTAL. Thanks!
3 years, 11 months ago (2017-01-19 21:08:17 UTC) #6
Theresa
lgtm % nit https://codereview.chromium.org/2644933002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchNetworkCommunicator.java File chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchNetworkCommunicator.java (right): https://codereview.chromium.org/2644933002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchNetworkCommunicator.java#newcode56 chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchNetworkCommunicator.java:56: * Stops any navigation in the ...
3 years, 11 months ago (2017-01-19 21:15:06 UTC) #7
Donn Denman
Thanks Theresa! https://codereview.chromium.org/2644933002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchNetworkCommunicator.java File chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchNetworkCommunicator.java (right): https://codereview.chromium.org/2644933002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchNetworkCommunicator.java#newcode56 chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchNetworkCommunicator.java:56: * Stops any navigation in the overlay ...
3 years, 11 months ago (2017-01-19 21:42:00 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2644933002/40001
3 years, 11 months ago (2017-01-19 21:42:30 UTC) #11
commit-bot: I haz the power
3 years, 11 months ago (2017-01-19 22:19:14 UTC) #14
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/51787340a7c9f2c1c84a522f7dc8...

Powered by Google App Engine
This is Rietveld 408576698