Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(443)

Unified Diff: tools/battor_agent/BUILD.gn

Issue 1524873002: Creates a BattOrConnection for communicating with the BattOr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added missing dep Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/battor_agent/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/battor_agent/BUILD.gn
diff --git a/tools/battor_agent/BUILD.gn b/tools/battor_agent/BUILD.gn
index c808409973393e2cbf4105c6db9233f8538e498d..ba98b2d36659de35f482072b2f26acc9fc8e6c78 100644
--- a/tools/battor_agent/BUILD.gn
+++ b/tools/battor_agent/BUILD.gn
@@ -2,6 +2,8 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import("//testing/test.gni")
+
executable("battor_agent") {
sources = [
"battor_agent_bin.cc",
@@ -14,14 +16,32 @@ executable("battor_agent") {
]
}
-static_library("battor_agent_lib") {
+source_set("battor_agent_lib") {
sources = [
"battor_agent.cc",
"battor_agent.h",
+ "battor_connection.cc",
+ "battor_connection.h",
"battor_error.h",
]
deps = [
"//base",
"//device/serial",
+ "//net",
+ ]
+}
+
+test("battor_agent_unittests") {
+ sources = [
+ "battor_connection_unittest.cc",
+ ]
+ deps = [
+ ":battor_agent_lib",
+ "//base",
+ "//base/test:run_all_unittests",
+ "//device/serial",
+ "//device/serial:test_support",
+ "//mojo/public/c/system:for_shared_library",
+ "//testing/gtest",
]
}
« no previous file with comments | « no previous file | tools/battor_agent/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698