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") | |
6 | |
7 executable("battor_agent") { | 5 executable("battor_agent") { |
8 sources = [ | 6 sources = [ |
9 "battor_agent_bin.cc", | 7 "battor_agent_bin.cc", |
10 ] | 8 ] |
11 deps = [ | 9 deps = [ |
12 ":battor_agent_lib", | 10 ":battor_agent_lib", |
13 "//base", | 11 "//base", |
14 "//device/serial", | 12 "//device/serial", |
15 "//mojo/public/c/system:for_shared_library", | 13 "//mojo/public/c/system:for_shared_library", |
16 ] | 14 ] |
17 } | 15 } |
18 | 16 |
19 source_set("battor_agent_lib") { | 17 static_library("battor_agent_lib") { |
20 sources = [ | 18 sources = [ |
21 "battor_agent.cc", | 19 "battor_agent.cc", |
22 "battor_agent.h", | 20 "battor_agent.h", |
23 "battor_connection.cc", | |
24 "battor_connection.h", | |
25 "battor_error.h", | 21 "battor_error.h", |
26 ] | 22 ] |
27 deps = [ | 23 deps = [ |
28 "//base", | 24 "//base", |
29 "//device/serial", | 25 "//device/serial", |
30 "//net", | |
31 ] | 26 ] |
32 } | 27 } |
33 | |
34 test("battor_agent_unittests") { | |
35 sources = [ | |
36 "battor_connection_unittest.cc", | |
37 ] | |
38 deps = [ | |
39 ":battor_agent_lib", | |
40 "//base", | |
41 "//base/test:run_all_unittests", | |
42 "//device/serial", | |
43 "//device/serial:test_support", | |
44 "//mojo/public/c/system:for_shared_library", | |
45 "//testing/gtest", | |
46 ] | |
47 } | |
OLD | NEW |