[Cronet] Delay StartNetLog and StopNetLog until native request context is initialized
[chromium-blink-merge.git] / mojo / common / BUILD.gn
blob80446980af906639ba2c1ff81abe4021b96e0512
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("//testing/test.gni")
7 group("common") {
8   deps = [
9     ":common_base",
10     ":url_type_converters",
11   ]
14 # GYP version: mojo/mojo_base.gyp:mojo_common_lib
15 component("common_base") {
16   output_name = "mojo_common_lib"
18   sources = [
19     "common_type_converters.cc",
20     "common_type_converters.h",
21     "data_pipe_utils.cc",
22     "data_pipe_utils.h",
23     "handle_watcher.cc",
24     "handle_watcher.h",
25     "message_pump_mojo.cc",
26     "message_pump_mojo.h",
27     "message_pump_mojo_handler.h",
28     "time_helper.cc",
29     "time_helper.h",
30   ]
32   defines = [ "MOJO_COMMON_IMPLEMENTATION" ]
34   deps = [
35     "//base",
36     "//base/third_party/dynamic_annotations",
37     "//third_party/mojo/src/mojo/public/c/system:for_component",
38   ]
41 # GYP version: mojo/mojo_base.gyp:mojo_url_type_converters
42 source_set("url_type_converters") {
43   sources = [
44     "url_type_converters.cc",
45     "url_type_converters.h",
46   ]
48   include_dirs = [ "//third_party/mojo/src/" ]
50   deps = [
51     ":common_base",
52     "//base",
53     "//base/third_party/dynamic_annotations",
54     "//url",
55   ]
58 # GYP version: mojo/mojo_base.gyp:mojo_common_unittests
59 test("mojo_common_unittests") {
60   deps = [
61     ":common",
62     "//base",
63     "//base:message_loop_tests",
64     "//mojo/environment:chromium",
65     "//testing/gtest",
66     "//third_party/mojo/src/mojo/edk/test:run_all_unittests",
67     "//third_party/mojo/src/mojo/edk/test:test_support",
68     "//third_party/mojo/src/mojo/public/cpp/bindings",
69     "//third_party/mojo/src/mojo/public/cpp/test_support:test_utils",
70     "//url",
71   ]
73   sources = [
74     "common_type_converters_unittest.cc",
75     "handle_watcher_unittest.cc",
76     "message_pump_mojo_unittest.cc",
77   ]