| 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("//third_party/protobuf/proto_library.gni") |    5 import("//third_party/protobuf/proto_library.gni") | 
|    6  |    6  | 
|    7 component("dbus") { |    7 component("dbus") { | 
|    8   sources = [ |    8   sources = [ | 
|    9     "bus.cc", |    9     "bus.cc", | 
|   10     "bus.h", |   10     "bus.h", | 
| (...skipping 28 matching lines...) Expand all  Loading... | 
|   39   deps = [ |   39   deps = [ | 
|   40     "//base", |   40     "//base", | 
|   41     "//third_party/protobuf:protobuf_lite", |   41     "//third_party/protobuf:protobuf_lite", | 
|   42   ] |   42   ] | 
|   43  |   43  | 
|   44   direct_dependent_configs = [ |   44   direct_dependent_configs = [ | 
|   45     "//build/config/linux:dbus", |   45     "//build/config/linux:dbus", | 
|   46   ] |   46   ] | 
|   47 } |   47 } | 
|   48  |   48  | 
|   49 proto_library("dbus_test_proto") { |   49 proto_library("test_proto") { | 
|   50   sources = [ "test_proto.proto" ] |   50   sources = [ "test_proto.proto" ] | 
|   51 } |   51 } | 
|   52  |   52  | 
|   53 # This target contains mocks that can be used to write unit tests without |   53 # This target contains mocks that can be used to write unit tests without | 
|   54 # issuing actual D-Bus calls. |   54 # issuing actual D-Bus calls. | 
|   55 source_set("dbus_test_support") { |   55 source_set("test_support") { | 
|   56   sources = [ |   56   sources = [ | 
|   57     "mock_bus.cc", |   57     "mock_bus.cc", | 
|   58     "mock_bus.h", |   58     "mock_bus.h", | 
|   59     "mock_exported_object.cc", |   59     "mock_exported_object.cc", | 
|   60     "mock_exported_object.h", |   60     "mock_exported_object.h", | 
|   61     "mock_object_manager.cc", |   61     "mock_object_manager.cc", | 
|   62     "mock_object_manager.h", |   62     "mock_object_manager.h", | 
|   63     "mock_object_proxy.cc", |   63     "mock_object_proxy.cc", | 
|   64     "mock_object_proxy.h", |   64     "mock_object_proxy.h", | 
|   65   ] |   65   ] | 
| (...skipping 22 matching lines...) Expand all  Loading... | 
|   88     "run_all_unittests.cc", |   88     "run_all_unittests.cc", | 
|   89     "signal_sender_verification_unittest.cc", |   89     "signal_sender_verification_unittest.cc", | 
|   90     "string_util_unittest.cc", |   90     "string_util_unittest.cc", | 
|   91     "test_service.cc", |   91     "test_service.cc", | 
|   92     "test_service.h", |   92     "test_service.h", | 
|   93     "values_util_unittest.cc", |   93     "values_util_unittest.cc", | 
|   94   ] |   94   ] | 
|   95  |   95  | 
|   96   deps = [ |   96   deps = [ | 
|   97     ":dbus", |   97     ":dbus", | 
|   98     ":dbus_test_proto", |   98     ":test_proto", | 
|   99     ":dbus_test_support", |   99     ":test_support", | 
|  100     "//base/test:test_support", |  100     "//base/test:test_support", | 
|  101     "//testing/gmock", |  101     "//testing/gmock", | 
|  102     "//testing/gtest", |  102     "//testing/gtest", | 
|  103     "//third_party/protobuf:protobuf_lite", |  103     "//third_party/protobuf:protobuf_lite", | 
|  104   ] |  104   ] | 
|  105  |  105  | 
|  106   configs += [ |  106   configs += [ | 
|  107     "//build/config/linux:dbus", |  107     "//build/config/linux:dbus", | 
|  108   ] |  108   ] | 
|  109 } |  109 } | 
|  110  |  110  | 
|  111 executable("dbus_test_server") { |  111 executable("dbus_test_server") { | 
|  112   sources = [ |  112   sources = [ | 
|  113     "test_server.cc", |  113     "test_server.cc", | 
|  114     "test_service.cc", |  114     "test_service.cc", | 
|  115     "test_service.h", |  115     "test_service.h", | 
|  116   ] |  116   ] | 
|  117  |  117  | 
|  118   deps = [ |  118   deps = [ | 
|  119     ":dbus", |  119     ":dbus", | 
|  120     "//base", |  120     "//base", | 
|  121     "//base/test:test_support", |  121     "//base/test:test_support", | 
|  122   ] |  122   ] | 
|  123  |  123  | 
|  124   configs += [ |  124   configs += [ | 
|  125     "//build/config/linux:dbus", |  125     "//build/config/linux:dbus", | 
|  126   ] |  126   ] | 
|  127 } |  127 } | 
| OLD | NEW |