Home | History | Annotate | Download | only in common
      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.
      4 
      5 # GYP version: mojo/mojo_base.gyp:mojo_common_lib
      6 component("common") {
      7   output_name = "mojo_common_lib"
      8 
      9   sources = [
     10     "common_type_converters.cc",
     11     "common_type_converters.h",
     12     "data_pipe_utils.cc",
     13     "data_pipe_utils.h",
     14     "handle_watcher.cc",
     15     "handle_watcher.h",
     16     "message_pump_mojo.cc",
     17     "message_pump_mojo.h",
     18     "message_pump_mojo_handler.h",
     19     "time_helper.cc",
     20     "time_helper.h",
     21   ]
     22 
     23   defines = [ "MOJO_COMMON_IMPLEMENTATION" ]
     24 
     25   deps = [
     26     "//base",
     27     "//base/third_party/dynamic_annotations",
     28     "//mojo/public/c/system:for_component",
     29     "//url",
     30   ]
     31 }
     32 
     33 # GYP version: mojo/mojo_base.gyp:mojo_common_unittests
     34 test("mojo_common_unittests") {
     35   deps = [
     36     ":common",
     37     "//base",
     38     "//base:message_loop_tests",
     39     "//mojo/common/test:run_all_unittests",
     40     "//mojo/common/test:test_support",
     41     "//mojo/environment:chromium",
     42     "//mojo/public/cpp/bindings",
     43     "//mojo/public/cpp/test_support:test_utils",
     44     "//testing/gtest",
     45     "//url",
     46   ]
     47 
     48   sources = [
     49     "common_type_converters_unittest.cc",
     50     "handle_watcher_unittest.cc",
     51     "message_pump_mojo_unittest.cc",
     52     "test/multiprocess_test_helper_unittest.cc",
     53   ]
     54 }
     55