| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/config/features.gni") | 5 import("//build/config/features.gni") |
| 6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
| 7 import("//third_party/protobuf/proto_library.gni") | 7 import("//third_party/protobuf/proto_library.gni") |
| 8 | 8 |
| 9 assert(use_dbus) | 9 assert(use_dbus) |
| 10 | 10 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 } | 52 } |
| 53 | 53 |
| 54 proto_library("test_proto") { | 54 proto_library("test_proto") { |
| 55 sources = [ | 55 sources = [ |
| 56 "test_proto.proto", | 56 "test_proto.proto", |
| 57 ] | 57 ] |
| 58 } | 58 } |
| 59 | 59 |
| 60 # This target contains mocks that can be used to write unit tests without | 60 # This target contains mocks that can be used to write unit tests without |
| 61 # issuing actual D-Bus calls. | 61 # issuing actual D-Bus calls. |
| 62 source_set("test_support") { | 62 static_library("test_support") { |
| 63 testonly = true | 63 testonly = true |
| 64 sources = [ | 64 sources = [ |
| 65 "mock_bus.cc", | 65 "mock_bus.cc", |
| 66 "mock_bus.h", | 66 "mock_bus.h", |
| 67 "mock_exported_object.cc", | 67 "mock_exported_object.cc", |
| 68 "mock_exported_object.h", | 68 "mock_exported_object.h", |
| 69 "mock_object_manager.cc", | 69 "mock_object_manager.cc", |
| 70 "mock_object_manager.h", | 70 "mock_object_manager.h", |
| 71 "mock_object_proxy.cc", | 71 "mock_object_proxy.cc", |
| 72 "mock_object_proxy.h", | 72 "mock_object_proxy.h", |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 | 125 |
| 126 deps = [ | 126 deps = [ |
| 127 ":dbus", | 127 ":dbus", |
| 128 "//base", | 128 "//base", |
| 129 "//base/test:test_support", | 129 "//base/test:test_support", |
| 130 "//build/config/sanitizers:deps", | 130 "//build/config/sanitizers:deps", |
| 131 ] | 131 ] |
| 132 | 132 |
| 133 configs += [ "//build/config/linux/dbus" ] | 133 configs += [ "//build/config/linux/dbus" ] |
| 134 } | 134 } |
| OLD | NEW |