diff options
author | sdefresne <sdefresne@chromium.org> | 2015-04-24 08:46:24 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-04-24 15:46:36 +0000 |
commit | 2f6155f7d07aed46cdce253445ab6ac08b3b2ac9 (patch) | |
tree | 6db72d1962fac40fb6e89e69ef9ee39f9531964d /components/history | |
parent | 0061b75e810f088900a0a8fbdd29ba5595c73016 (diff) | |
download | chromium_src-2f6155f7d07aed46cdce253445ab6ac08b3b2ac9.zip chromium_src-2f6155f7d07aed46cdce253445ab6ac08b3b2ac9.tar.gz chromium_src-2f6155f7d07aed46cdce253445ab6ac08b3b2ac9.tar.bz2 |
Remove dependency of history_unittests on content::DownloadInterruptReason
Export kTestDownloadInterruptReason{None,Crash} and use them in
history_unittests.cc to remove dependency on content::DownloadInterruptReason.
Remove unused #includes.
BUG=370850
Review URL: https://codereview.chromium.org/1107683003
Cr-Commit-Position: refs/heads/master@{#326805}
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 { |