diff options
Diffstat (limited to 'components/history')
-rw-r--r-- | components/history/core/test/test_history_database.cc | 2 | ||||
-rw-r--r-- | components/history/core/test/test_history_database.h | 8 |
2 files changed, 8 insertions, 2 deletions
diff --git a/components/history/core/test/test_history_database.cc b/components/history/core/test/test_history_database.cc index d2c76c7..ca5f275 100644 --- a/components/history/core/test/test_history_database.cc +++ b/components/history/core/test/test_history_database.cc @@ -7,10 +7,8 @@ #include "components/history/core/browser/history_database_params.h" namespace history { -namespace { const DownloadInterruptReason kTestDownloadInterruptReasonNone = 0; const DownloadInterruptReason kTestDownloadInterruptReasonCrash = 1; -} // namespace TestHistoryDatabase::TestHistoryDatabase() : HistoryDatabase(kTestDownloadInterruptReasonNone, diff --git a/components/history/core/test/test_history_database.h b/components/history/core/test/test_history_database.h index 178b8a8..52b431b 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 { |