summaryrefslogtreecommitdiff
path: root/chromium/components/download/database/BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/components/download/database/BUILD.gn')
-rw-r--r--chromium/components/download/database/BUILD.gn64
1 files changed, 64 insertions, 0 deletions
diff --git a/chromium/components/download/database/BUILD.gn b/chromium/components/download/database/BUILD.gn
new file mode 100644
index 00000000000..73d775e774c
--- /dev/null
+++ b/chromium/components/download/database/BUILD.gn
@@ -0,0 +1,64 @@
+# Copyright 2018 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+if (is_android) {
+ import("//build/config/android/config.gni")
+ import("//build/config/android/rules.gni")
+}
+
+source_set("database") {
+ sources = [
+ "download_db.h",
+ "download_db_conversions.cc",
+ "download_db_conversions.h",
+ "download_db_entry.cc",
+ "download_db_entry.h",
+ "download_db_impl.cc",
+ "download_db_impl.h",
+ "download_info.cc",
+ "download_info.h",
+ "download_namespace.cc",
+ "download_namespace.h",
+ "in_progress/download_entry.cc",
+ "in_progress/download_entry.h",
+ "in_progress/in_progress_cache.h",
+ "in_progress/in_progress_cache_impl.cc",
+ "in_progress/in_progress_cache_impl.h",
+ "in_progress/in_progress_info.cc",
+ "in_progress/in_progress_info.h",
+ "in_progress/ukm_info.cc",
+ "in_progress/ukm_info.h",
+ "switches.cc",
+ "switches.h",
+ ]
+
+ deps = [
+ "//base",
+ "//components/download/database/proto",
+ "//components/leveldb_proto",
+ "//net",
+ "//services/metrics/public/cpp:metrics_cpp",
+ "//services/network/public/mojom",
+ ]
+}
+
+source_set("unit_tests") {
+ testonly = true
+
+ sources = [
+ "download_db_conversions_unittest.cc",
+ "download_db_impl_unittest.cc",
+ "in_progress/in_progress_cache_impl_unittest.cc",
+ ]
+
+ deps = [
+ ":database",
+ "//base/test:test_support",
+ "//components/download/database/proto",
+ "//components/leveldb_proto:test_support",
+ "//content/test:test_support",
+ "//testing/gmock",
+ "//testing/gtest",
+ ]
+}