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/single_thread_task_runner.h" | 9 #include "base/single_thread_task_runner.h" |
10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 bool HistoryBackendDBBaseTest::AddDownload(uint32_t id, | 120 bool HistoryBackendDBBaseTest::AddDownload(uint32_t id, |
121 const std::string& guid, | 121 const std::string& guid, |
122 DownloadState state, | 122 DownloadState state, |
123 base::Time time) { | 123 base::Time time) { |
124 std::vector<GURL> url_chain; | 124 std::vector<GURL> url_chain; |
125 url_chain.push_back(GURL("foo-url")); | 125 url_chain.push_back(GURL("foo-url")); |
126 | 126 |
127 DownloadRow download( | 127 DownloadRow download( |
128 base::FilePath(FILE_PATH_LITERAL("current-path")), | 128 base::FilePath(FILE_PATH_LITERAL("current-path")), |
129 base::FilePath(FILE_PATH_LITERAL("target-path")), url_chain, | 129 base::FilePath(FILE_PATH_LITERAL("target-path")), url_chain, |
130 GURL("http://referrer.example.com/"), GURL("http://tab-url.example.com/"), | 130 GURL("http://referrer.example.com/"), GURL("http://site-url.example.com"), |
| 131 GURL("http://tab-url.example.com/"), |
131 GURL("http://tab-referrer-url.example.com/"), std::string(), | 132 GURL("http://tab-referrer-url.example.com/"), std::string(), |
132 "application/vnd.oasis.opendocument.text", "application/octet-stream", | 133 "application/vnd.oasis.opendocument.text", "application/octet-stream", |
133 time, time, std::string(), std::string(), 0, 512, state, | 134 time, time, std::string(), std::string(), 0, 512, state, |
134 DownloadDangerType::NOT_DANGEROUS, kTestDownloadInterruptReasonNone, | 135 DownloadDangerType::NOT_DANGEROUS, kTestDownloadInterruptReasonNone, |
135 std::string(), id, guid, false, "by_ext_id", "by_ext_name"); | 136 std::string(), id, guid, false, "by_ext_id", "by_ext_name"); |
136 return db_->CreateDownload(download); | 137 return db_->CreateDownload(download); |
137 } | 138 } |
138 | 139 |
139 } // namespace history | 140 } // namespace history |
OLD | NEW |