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

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: 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') | tools/battor_agent/battor_agent.h » ('J')
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..0a25ca6e47c9258bde4d0918518a8d0afddfde7d 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",
@@ -18,10 +20,26 @@ static_library("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/test:run_all_unittests",
+ "//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') | tools/battor_agent/battor_agent.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698