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

Side by Side Diff: services/service_cache/BUILD.gn

Issue 1088533003: Adding URLResponse Disk Cache to mojo. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: And now with full app tests and a bug fix. Created 5 years, 7 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
(Empty)
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
3 # found in the LICENSE file.
4
5 import("//build/module_args/mojo.gni")
6 import("//mojo/public/mojo_application.gni")
7 import("//mojo/public/tools/bindings/mojom.gni")
8 import("//mojo/tools/embed/rules.gni")
9
10 source_set("service_cache") {
DaveMoore 2015/05/05 21:20:59 Why not a native application?
qsr 2015/05/06 08:13:49 Because this is used as part of application loadin
11 sources = [
12 "service_cache_app.cc",
13 "service_cache_app.h",
14 "service_cache_impl.cc",
15 "service_cache_impl.h",
16 ]
17
18 deps = [
19 ":bindings",
20 "//base",
21 "//mojo/application",
22 "//mojo/common",
23 "//mojo/environment:chromium",
24 "//mojo/public/cpp/application",
25 "//mojo/public/cpp/system",
26 "//mojo/services/service_cache/public/interfaces",
27 "//third_party/zlib:zip",
28 "//url:url",
29 ]
30 }
31
32 mojom("bindings") {
33 sources = [
34 "service_cache_entry.mojom",
35 ]
36 }
37
38 mojo_native_application("tests") {
39 output_name = "service_cache_apptests"
40
41 testonly = true
42
43 sources = [
44 "service_cache_apptest.cc",
45 ]
46
47 deps = [
48 ":embed_test_data",
49 "//base",
50 "//mojo/application",
51 "//mojo/application:test_support",
52 "//mojo/common",
53 "//mojo/public/cpp/bindings",
54 "//mojo/public/cpp/system:system",
55 "//mojo/services/network/public/interfaces:interfaces",
56 "//mojo/services/service_cache/public/interfaces",
57 ]
58
59 data_deps = [ ":service_cache" ]
60 }
61
62 action("test_data") {
63 script = "//mojo/public/tools/gn/zip.py"
64 inputs = [
65 "test_data/file1",
66 "test_data/file2",
67 ]
68 output = "$target_out_dir/test_data.zip"
69 outputs = [
70 output,
71 ]
72 rebase_base_dir = rebase_path("test_data", root_build_dir)
73 rebase_inputs = rebase_path(inputs, root_build_dir)
74 rebase_output = rebase_path(output, root_build_dir)
75 args = [
76 "--base-dir=$rebase_base_dir",
77 "--inputs=$rebase_inputs",
78 "--output=$rebase_output",
79 ]
80 }
81
82 embed_file("embed_test_data") {
83 source = "$target_out_dir/test_data.zip"
84 namespace = "mojo::service_cache"
85 variable = "kTestData"
86
87 deps = [
88 ":test_data",
89 ]
90 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698