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

Unified Diff: components/test_runner/test_runner.h

Issue 2147633003: PlzNavigate: Eliminate test_runner bailing out of layout tests too early (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix same-doc navigation + build, add passing tests Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/test_runner/test_runner.cc » ('j') | components/test_runner/test_runner.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/test_runner/test_runner.h
diff --git a/components/test_runner/test_runner.h b/components/test_runner/test_runner.h
index d9e1a1ca68f3e8bc5039f37644a854a61efe9bac..c169a88e5539e554653df56230a4f79d1615708f 100644
--- a/components/test_runner/test_runner.h
+++ b/components/test_runner/test_runner.h
@@ -99,6 +99,8 @@ class TestRunner : public WebTestRunner {
void SetFocus(blink::WebView* web_view, bool focus) override;
// Methods used by WebViewTestClient and WebFrameTestClient.
+ void OnNavigationBegin() { is_navigating_ = true; }
+ void OnNavigationEnd() { is_navigating_ = false; }
void OnAnimationScheduled(blink::WebWidget* widget);
void OnAnimationBegun(blink::WebWidget* widget);
std::string GetAcceptLanguages() const;
@@ -614,6 +616,11 @@ class TestRunner : public WebTestRunner {
bool use_mock_theme_;
+ // This is true in the period between the start of a navigation and when that
+ // navigation commits or fails. Note that when browser-side navigation is
+ // enabled there is an arbitrary gap between these two events.
clamy 2016/07/19 13:50:35 Wouldn't that be the case in the current architect
blundell 2016/07/21 10:02:18 Yes, good point. The PlzNavigate-specific gap is b
+ bool is_navigating_;
+
std::unique_ptr<MockCredentialManagerClient> credential_manager_client_;
std::unique_ptr<MockScreenOrientationClient> mock_screen_orientation_client_;
std::unique_ptr<MockWebSpeechRecognizer> speech_recognizer_;
« no previous file with comments | « no previous file | components/test_runner/test_runner.cc » ('j') | components/test_runner/test_runner.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698