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

Unified Diff: services/url_response_disk_cache/BUILD.gn

Issue 1276073004: Offline By Default (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Add missing explicits. Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: services/url_response_disk_cache/BUILD.gn
diff --git a/services/url_response_disk_cache/BUILD.gn b/services/url_response_disk_cache/BUILD.gn
index 2cb04bb09bb8d9b9695a74ed948cf4d5ed978f58..bb0bb87295fed6a012a6e3daecab4890a5baaead 100644
--- a/services/url_response_disk_cache/BUILD.gn
+++ b/services/url_response_disk_cache/BUILD.gn
@@ -6,6 +6,16 @@ import("//build/module_args/mojo.gni")
import("//mojo/public/mojo_application.gni")
import("//mojo/public/tools/bindings/mojom.gni")
import("//mojo/tools/embed/rules.gni")
+import("//testing/test.gni")
+
+group("tests") {
+ testonly = true
+
+ deps = [
+ ":apptests",
+ ":unittests",
+ ]
+}
source_set("url_response_disk_cache") {
sources = [
@@ -17,25 +27,45 @@ source_set("url_response_disk_cache") {
deps = [
":bindings",
+ ":url_response_disk_cache_db",
"//base",
+ "//crypto",
"//mojo/application",
"//mojo/data_pipe_utils",
"//mojo/environment:chromium",
"//mojo/public/cpp/application",
"//mojo/public/cpp/system",
+ "//mojo/public/interfaces/network",
"//mojo/services/url_response_disk_cache/public/interfaces",
"//third_party/zlib:zip",
"//url:url",
]
}
+source_set("url_response_disk_cache_db") {
+ sources = [
+ "url_response_disk_cache_db.cc",
+ "url_response_disk_cache_db.h",
+ ]
+
+ deps = [
+ ":bindings",
+ "//base",
+ "//third_party/leveldatabase",
+ ]
+}
+
mojom("bindings") {
sources = [
"url_response_disk_cache_entry.mojom",
]
+
+ deps = [
+ "//mojo/public/interfaces/network",
+ ]
}
-mojo_native_application("tests") {
+mojo_native_application("apptests") {
output_name = "url_response_disk_cache_apptests"
testonly = true
@@ -58,6 +88,26 @@ mojo_native_application("tests") {
data_deps = [ ":url_response_disk_cache" ]
}
+test("unittests") {
+ output_name = "url_response_disk_cache_unittests"
+
+ sources = [
+ "url_response_disk_cache_db_unittests.cc",
+ ]
+
+ deps = [
+ ":url_response_disk_cache_db",
+ "//base",
+ "//base/test:run_all_unittests",
+ "//base/test:test_support",
+ "//mojo/environment:chromium",
+ "//mojo/public/cpp/bindings",
+ "//mojo/public/cpp/system",
+ "//mojo/public/platform/native:system",
+ "//testing/gtest",
+ ]
+}
+
action("test_data") {
script = "//mojo/public/tools/gn/zip.py"
inputs = [

Powered by Google App Engine
This is Rietveld 408576698