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/run_loop.h" | 9 #include "base/run_loop.h" |
10 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 | 128 |
129 DownloadRow download( | 129 DownloadRow download( |
130 base::FilePath(FILE_PATH_LITERAL("current-path")), | 130 base::FilePath(FILE_PATH_LITERAL("current-path")), |
131 base::FilePath(FILE_PATH_LITERAL("target-path")), url_chain, | 131 base::FilePath(FILE_PATH_LITERAL("target-path")), url_chain, |
132 GURL("http://referrer.example.com/"), GURL("http://site-url.example.com"), | 132 GURL("http://referrer.example.com/"), GURL("http://site-url.example.com"), |
133 GURL("http://tab-url.example.com/"), | 133 GURL("http://tab-url.example.com/"), |
134 GURL("http://tab-referrer-url.example.com/"), std::string(), | 134 GURL("http://tab-referrer-url.example.com/"), std::string(), |
135 "application/vnd.oasis.opendocument.text", "application/octet-stream", | 135 "application/vnd.oasis.opendocument.text", "application/octet-stream", |
136 time, time, std::string(), std::string(), 0, 512, state, | 136 time, time, std::string(), std::string(), 0, 512, state, |
137 DownloadDangerType::NOT_DANGEROUS, kTestDownloadInterruptReasonNone, | 137 DownloadDangerType::NOT_DANGEROUS, kTestDownloadInterruptReasonNone, |
138 std::string(), id, guid, false, time, "by_ext_id", "by_ext_name", | 138 std::string(), id, guid, false, time, true, "by_ext_id", "by_ext_name", |
139 std::vector<DownloadSliceInfo>()); | 139 std::vector<DownloadSliceInfo>()); |
140 return db_->CreateDownload(download); | 140 return db_->CreateDownload(download); |
141 } | 141 } |
142 | 142 |
143 } // namespace history | 143 } // namespace history |
OLD | NEW |