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

Unified Diff: chrome/browser/chromeos/base/file_flusher.h

Issue 2342813003: Fix flaky FileFlusherTest.DuplicateRequests (Closed)
Patch Set: Created 4 years, 3 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: chrome/browser/chromeos/base/file_flusher.h
diff --git a/chrome/browser/chromeos/base/file_flusher.h b/chrome/browser/chromeos/base/file_flusher.h
index d33f9836b543f0352c3f2df9eef0a8437ba0a718..f22baaeb4c07167abf9e6d2984961782f991370c 100644
--- a/chrome/browser/chromeos/base/file_flusher.h
+++ b/chrome/browser/chromeos/base/file_flusher.h
@@ -38,6 +38,9 @@ class FileFlusher {
on_flush_callback_for_test_ = on_flush_callback;
}
+ void PauseForTest();
+ void ResumeForTest();
+
private:
// Job for the flushing requests.
class Job;
@@ -54,6 +57,8 @@ class FileFlusher {
// A callback for testing to be invoked when a file is flushed.
OnFlushCallback on_flush_callback_for_test_;
+ bool paused_for_test_ = false;
+
base::WeakPtrFactory<FileFlusher> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(FileFlusher);
« no previous file with comments | « no previous file | chrome/browser/chromeos/base/file_flusher.cc » ('j') | chrome/browser/chromeos/base/file_flusher.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698