Correctly handle empty data in RenderMessageFilter::OnCacheableMetadataAvailable()
[chromium-blink-merge.git] / mojo / shell / BUILD.gn
blobf70d37ce284c952130042ed5d985995cafae8c24
1 # Copyright 2014 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.
5 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni")
6 import("//testing/test.gni")
8 source_set("shell") {
9   output_name = "mojo_shell"
10   sources = [
11     "application_instance.cc",
12     "application_instance.h",
13     "application_loader.h",
14     "application_manager.cc",
15     "application_manager.h",
16     "capability_filter.cc",
17     "capability_filter.h",
18     "content_handler_connection.cc",
19     "content_handler_connection.h",
20     "data_pipe_peek.cc",
21     "data_pipe_peek.h",
22     "fetcher.cc",
23     "fetcher.h",
24     "identity.cc",
25     "identity.h",
26     "local_fetcher.cc",
27     "local_fetcher.h",
28     "native_runner.h",
29     "network_fetcher.cc",
30     "network_fetcher.h",
31     "query_util.cc",
32     "query_util.h",
33     "static_application_loader.cc",
34     "static_application_loader.h",
35     "switches.cc",
36     "switches.h",
37     "update_fetcher.cc",
38     "update_fetcher.h",
39   ]
41   public_deps = [
42     "//base",
43     "//mojo/application/public/interfaces",
44     "//mojo/common",
45     "//third_party/mojo/src/mojo/public/cpp/bindings",
46     "//mojo/services/network/public/interfaces",
47     "//mojo/services/updater",
48     "//url",
49   ]
50   deps = [
51     "//base/third_party/dynamic_annotations",
52     "//crypto:crypto",
53     "//mojo/application/public/cpp:sources",
54     "//url",
55     "//third_party/mojo/src/mojo/edk/system",
56     "//mojo/environment:chromium",
57     "//mojo/util:filename_util",
58   ]
61 test("mojo_shell_unittests") {
62   sources = [
63     "application_manager_unittest.cc",
64     "capability_filter_unittest.cc",
65     "query_util_unittest.cc",
66   ]
68   deps = [
69     ":shell",
70     ":test_bindings",
71     "//base",
72     "//mojo/application/public/cpp",
73     "//third_party/mojo/src/mojo/edk/test:run_all_unittests",
74     "//testing/gtest",
75     "//url",
76   ]
79 mojom("test_bindings") {
80   sources = [
81     "capability_filter_unittest.mojom",
82     "test.mojom",
83   ]