1# Copyright 2016 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 5import("//testing/test.gni") 6 7component("ports") { 8 output_name = "mojo_core_ports" 9 10 sources = [ 11 "event.cc", 12 "event.h", 13 "message_filter.h", 14 "message_queue.cc", 15 "message_queue.h", 16 "name.cc", 17 "name.h", 18 "node.cc", 19 "node.h", 20 "node_delegate.h", 21 "port.cc", 22 "port.h", 23 "port_locker.cc", 24 "port_locker.h", 25 "port_ref.cc", 26 "port_ref.h", 27 "user_data.h", 28 "user_message.cc", 29 "user_message.h", 30 ] 31 32 defines = [ "IS_MOJO_CORE_PORTS_IMPL" ] 33 34 public_deps = [ 35 "//base", 36 ] 37 38 if (!is_nacl) { 39 deps = [ 40 "//crypto", 41 ] 42 } 43} 44 45source_set("tests") { 46 testonly = true 47 48 sources = [ 49 "name_unittest.cc", 50 "ports_unittest.cc", 51 ] 52 53 deps = [ 54 ":ports", 55 "//base", 56 "//base/test:test_support", 57 "//testing/gtest", 58 ] 59} 60