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

Unified Diff: chrome/browser/history/history_test_utils.h

Issue 2495053003: Wait for history backend in popup blocker test (Closed)
Patch Set: Created 4 years, 1 month 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/history/history_test_utils.h
diff --git a/chrome/browser/history/history_test_utils.h b/chrome/browser/history/history_test_utils.h
new file mode 100644
index 0000000000000000000000000000000000000000..7704a4ce9e4ccba8591abc315452b752f676f100
--- /dev/null
+++ b/chrome/browser/history/history_test_utils.h
@@ -0,0 +1,14 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_HISTORY_HISTORY_TEST_UTILS_H_
+#define CHROME_BROWSER_HISTORY_HISTORY_TEST_UTILS_H_
+
+class Profile;
+
+// Spins the current message loop until all pending messages on the history DB
+// thread complete.
+void WaitForHistoryBackendToRun(Profile* profile);
+
+#endif // CHROME_BROWSER_HISTORY_HISTORY_TEST_UTILS_H_

Powered by Google App Engine
This is Rietveld 408576698