| 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", |
| 31 "battor_sample_converter.cc", | 33 "battor_sample_converter.cc", |
| 32 "battor_sample_converter.h", | 34 "battor_sample_converter.h", |
| 33 ] | 35 ] |
| 34 deps = [ | 36 deps = [ |
| 35 "//base", | 37 "//base", |
| 36 "//device/serial", | 38 "//device/serial", |
| 37 "//net", | 39 "//net", |
| 38 ] | 40 ] |
| 39 } | 41 } |
| 40 | 42 |
| 41 test("battor_agent_unittests") { | 43 test("battor_agent_unittests") { |
| 42 sources = [ | 44 sources = [ |
| 43 "battor_agent_unittest.cc", | 45 "battor_agent_unittest.cc", |
| 44 "battor_connection_impl_unittest.cc", | 46 "battor_connection_impl_unittest.cc", |
| 45 "battor_protocol_types_unittest.cc", | 47 "battor_protocol_types_unittest.cc", |
| 46 "battor_sample_converter_unittest.cc", | 48 "battor_sample_converter_unittest.cc", |
| 47 ] | 49 ] |
| 48 deps = [ | 50 deps = [ |
| 49 ":battor_agent_lib", | 51 ":battor_agent_lib", |
| 50 "//base", | 52 "//base", |
| 51 "//base/test:run_all_unittests", | 53 "//base/test:run_all_unittests", |
| 52 "//base/test:test_support", | 54 "//base/test:test_support", |
| 53 "//device/serial", | 55 "//device/serial", |
| 54 "//device/serial:test_support", | 56 "//device/serial:test_support", |
| 55 "//mojo/public/c/system:for_shared_library", | 57 "//mojo/public/c/system:for_shared_library", |
| 56 "//testing/gmock", | 58 "//testing/gmock", |
| 57 "//testing/gtest", | 59 "//testing/gtest", |
| 58 ] | 60 ] |
| 59 } | 61 } |
| OLD | NEW |