OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "components/history/core/test/history_backend_db_base_test.h" | 5 #include "components/history/core/test/history_backend_db_base_test.h" |
6 | 6 |
7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
8 #include "base/location.h" | 8 #include "base/location.h" |
| 9 #include "base/message_loop/message_loop.h" |
9 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
10 #include "base/single_thread_task_runner.h" | 11 #include "base/single_thread_task_runner.h" |
11 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
12 #include "base/threading/thread_task_runner_handle.h" | 13 #include "base/threading/thread_task_runner_handle.h" |
13 #include "components/history/core/browser/download_constants.h" | 14 #include "components/history/core/browser/download_constants.h" |
14 #include "components/history/core/browser/download_row.h" | 15 #include "components/history/core/browser/download_row.h" |
15 #include "components/history/core/browser/history_backend.h" | 16 #include "components/history/core/browser/history_backend.h" |
16 #include "components/history/core/browser/history_backend_client.h" | 17 #include "components/history/core/browser/history_backend_client.h" |
17 #include "components/history/core/browser/history_constants.h" | 18 #include "components/history/core/browser/history_constants.h" |
18 #include "components/history/core/browser/history_database_params.h" | 19 #include "components/history/core/browser/history_database_params.h" |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 GURL("http://tab-referrer-url.example.com/"), std::string(), | 136 GURL("http://tab-referrer-url.example.com/"), std::string(), |
136 "application/vnd.oasis.opendocument.text", "application/octet-stream", | 137 "application/vnd.oasis.opendocument.text", "application/octet-stream", |
137 time, time, std::string(), std::string(), 0, 512, state, | 138 time, time, std::string(), std::string(), 0, 512, state, |
138 DownloadDangerType::NOT_DANGEROUS, kTestDownloadInterruptReasonNone, | 139 DownloadDangerType::NOT_DANGEROUS, kTestDownloadInterruptReasonNone, |
139 std::string(), id, guid, false, time, true, "by_ext_id", "by_ext_name", | 140 std::string(), id, guid, false, time, true, "by_ext_id", "by_ext_name", |
140 std::vector<DownloadSliceInfo>()); | 141 std::vector<DownloadSliceInfo>()); |
141 return db_->CreateDownload(download); | 142 return db_->CreateDownload(download); |
142 } | 143 } |
143 | 144 |
144 } // namespace history | 145 } // namespace history |
OLD | NEW |