Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(93)

Side by Side Diff: components/history/core/test/history_backend_db_base_test.cc

Issue 2720613002: Downloads: Added transient flag to download item and download database (Closed)
Patch Set: fix tests Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « components/history/core/browser/history_database.cc ('k') | content/browser/download/download_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698