| 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 |
| 5 executable("battor_agent") { | 7 executable("battor_agent") { |
| 6 sources = [ | 8 sources = [ |
| 7 "battor_agent_bin.cc", | 9 "battor_agent_bin.cc", |
| 8 ] | 10 ] |
| 9 deps = [ | 11 deps = [ |
| 10 ":battor_agent_lib", | 12 ":battor_agent_lib", |
| 11 "//base", | 13 "//base", |
| 12 "//device/serial", | 14 "//device/serial", |
| 13 "//mojo/public/c/system:for_shared_library", | 15 "//mojo/public/c/system:for_shared_library", |
| 14 ] | 16 ] |
| 15 } | 17 } |
| 16 | 18 |
| 17 static_library("battor_agent_lib") { | 19 source_set("battor_agent_lib") { |
| 18 sources = [ | 20 sources = [ |
| 19 "battor_agent.cc", | 21 "battor_agent.cc", |
| 20 "battor_agent.h", | 22 "battor_agent.h", |
| 23 "battor_connection.cc", |
| 24 "battor_connection.h", |
| 21 "battor_error.h", | 25 "battor_error.h", |
| 22 ] | 26 ] |
| 23 deps = [ | 27 deps = [ |
| 24 "//base", | 28 "//base", |
| 25 "//device/serial", | 29 "//device/serial", |
| 30 "//net", |
| 26 ] | 31 ] |
| 27 } | 32 } |
| 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 |