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

Unified Diff: base/test/test_mock_time_task_runner.h

Issue 1575623002: Disable Web Notifications in Incognito (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permfix
Patch Set: No Profile* in WebsiteSettingsPopupView Created 4 years, 11 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
Index: base/test/test_mock_time_task_runner.h
diff --git a/base/test/test_mock_time_task_runner.h b/base/test/test_mock_time_task_runner.h
index 316e6a622c5a878548082b33f87e6db1c577a9ef..7a71e011bfa7ae177e0bba8e7c072208ef07b58a 100644
--- a/base/test/test_mock_time_task_runner.h
+++ b/base/test/test_mock_time_task_runner.h
@@ -50,6 +50,9 @@ class TestMockTimeTaskRunner : public SingleThreadTaskRunner {
// whose time ticks will start at zero.
TestMockTimeTaskRunner();
+ // Constructs an instance starting at the given virtual time and time ticks.
+ TestMockTimeTaskRunner(Time start_time, TimeTicks start_ticks);
+
// Fast-forwards virtual time by |delta|, causing all tasks with a remaining
// delay less than or equal to |delta| to be executed. |delta| must be
// non-negative.

Powered by Google App Engine
This is Rietveld 408576698