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

Unified Diff: components/history/core/test/test_history_database.h

Issue 1100763002: Inject CanAddURLToHistory into TopSitesImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prefs
Patch Set: Fix error introduced during rebase Created 5 years, 8 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: components/history/core/test/test_history_database.h
diff --git a/components/history/core/test/test_history_database.h b/components/history/core/test/test_history_database.h
index 178b8a88a64f903b498cd5022cfd89cb2cbb5360..52b431bf51ba4e5bc496b3d6a4ba6b1a02e46164 100644
--- a/components/history/core/test/test_history_database.h
+++ b/components/history/core/test/test_history_database.h
@@ -5,6 +5,7 @@
#ifndef COMPONENTS_HISTORY_CORE_TEST_TEST_HISTORY_DATABASE_H_
#define COMPONENTS_HISTORY_CORE_TEST_TEST_HISTORY_DATABASE_H_
+#include "components/history/core/browser/download_types.h"
#include "components/history/core/browser/history_database.h"
namespace base {
@@ -15,6 +16,13 @@ namespace history {
struct HistoryDatabaseParams;
+// The download successfully completed. Value for tests.
+extern const DownloadInterruptReason kTestDownloadInterruptReasonNone;
+
+// The download was interrupted by a browser crash. Internal use only.
+// Resume pending downloads if possible. Value for tests.
+extern const DownloadInterruptReason kTestDownloadInterruptReasonCrash;
+
// TestHistoryDatabase is a simple wrapper around HistoryDatabase that provides
// default values to the constructor.
class TestHistoryDatabase : public HistoryDatabase {
« no previous file with comments | « components/history/core/test/database_test_utils.cc ('k') | components/history/core/test/test_history_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698