Introduce new SPDY Version UMA histogram.
[chromium-blink-merge.git] / mojo / common / BUILD.gn
blob5bd139f8c7245ad68ff118e6d3dd0c055f2d1a06
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("//mojo/system.gni")
7 # GYP version: mojo/mojo_base.gyp:mojo_common_lib
8 component("common") {
9   output_name = "mojo_common_lib"
11   sources = [
12     "common_type_converters.cc",
13     "common_type_converters.h",
14     "data_pipe_utils.cc",
15     "data_pipe_utils.h",
16     "handle_watcher.cc",
17     "handle_watcher.h",
18     "message_pump_mojo.cc",
19     "message_pump_mojo.h",
20     "message_pump_mojo_handler.h",
21     "time_helper.cc",
22     "time_helper.h",
23   ]
25   defines = [ "MOJO_COMMON_IMPLEMENTATION" ]
27   deps = [
28     "//base",
29     "//base/third_party/dynamic_annotations",
30     "//url",
31   ] + mojo_system_for_component
34 # GYP version: mojo/mojo_base.gyp:mojo_common_unittests
35 test("mojo_common_unittests") {
36   deps = [
37     ":common",
38     "//base",
39     "//base:message_loop_tests",
40     "//mojo/common/test:run_all_unittests",
41     "//mojo/common/test:test_support",
42     "//mojo/environment:chromium",
43     "//mojo/public/cpp/bindings",
44     "//mojo/public/cpp/test_support:test_utils",
45     "//testing/gtest",
46     "//url",
47   ]
49   sources = [
50     "common_type_converters_unittest.cc",
51     "handle_watcher_unittest.cc",
52     "message_pump_mojo_unittest.cc",
53     "test/multiprocess_test_helper_unittest.cc",
54   ]