OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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("//testing/test.gni") | 5 import("//testing/test.gni") |
6 | 6 |
7 # Works only on desktop platforms. | 7 # Works only on desktop platforms. |
8 assert(is_win || is_linux || is_mac) | 8 assert(is_win || is_linux || is_mac) |
9 | 9 |
10 executable("battor_agent") { | 10 executable("battor_agent") { |
(...skipping 10 matching lines...) Expand all Loading... |
21 | 21 |
22 source_set("battor_agent_lib") { | 22 source_set("battor_agent_lib") { |
23 sources = [ | 23 sources = [ |
24 "battor_agent.cc", | 24 "battor_agent.cc", |
25 "battor_agent.h", | 25 "battor_agent.h", |
26 "battor_connection.cc", | 26 "battor_connection.cc", |
27 "battor_connection.h", | 27 "battor_connection.h", |
28 "battor_connection_impl.cc", | 28 "battor_connection_impl.cc", |
29 "battor_connection_impl.h", | 29 "battor_connection_impl.h", |
30 "battor_error.h", | 30 "battor_error.h", |
31 "battor_finder.cc", | |
32 "battor_finder.h", | |
33 "battor_sample_converter.cc", | 31 "battor_sample_converter.cc", |
34 "battor_sample_converter.h", | 32 "battor_sample_converter.h", |
35 ] | 33 ] |
36 deps = [ | 34 deps = [ |
37 "//base", | 35 "//base", |
38 "//device/serial", | 36 "//device/serial", |
39 "//net", | 37 "//net", |
40 ] | 38 ] |
41 } | 39 } |
42 | 40 |
43 test("battor_agent_unittests") { | 41 test("battor_agent_unittests") { |
44 sources = [ | 42 sources = [ |
45 "battor_agent_unittest.cc", | 43 "battor_agent_unittest.cc", |
46 "battor_connection_impl_unittest.cc", | 44 "battor_connection_impl_unittest.cc", |
47 "battor_protocol_types_unittest.cc", | 45 "battor_protocol_types_unittest.cc", |
48 "battor_sample_converter_unittest.cc", | 46 "battor_sample_converter_unittest.cc", |
49 ] | 47 ] |
50 deps = [ | 48 deps = [ |
51 ":battor_agent_lib", | 49 ":battor_agent_lib", |
52 "//base", | 50 "//base", |
53 "//base/test:run_all_unittests", | 51 "//base/test:run_all_unittests", |
54 "//base/test:test_support", | 52 "//base/test:test_support", |
55 "//device/serial", | 53 "//device/serial", |
56 "//device/serial:test_support", | 54 "//device/serial:test_support", |
57 "//mojo/public/c/system:for_shared_library", | 55 "//mojo/public/c/system:for_shared_library", |
58 "//testing/gmock", | 56 "//testing/gmock", |
59 "//testing/gtest", | 57 "//testing/gtest", |
60 ] | 58 ] |
61 } | 59 } |
OLD | NEW |