Index: blimp/common/BUILD.gn |
diff --git a/blimp/common/BUILD.gn b/blimp/common/BUILD.gn |
index eaf5f1625cd6c5f1c72cad18894e5ec42fd02879..7271dc155bed70504ce2b371b870aa24264ff803 100644 |
--- a/blimp/common/BUILD.gn |
+++ b/blimp/common/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") |
+ |
component("blimp_common") { |
sources = [ |
# TODO(dtrainor): Remove this once the LayerTreeHost settings for Blimp |
@@ -11,6 +13,8 @@ component("blimp_common") { |
"blimp_common_export.h", |
"compositor/blimp_layer_tree_settings.cc", |
"compositor/blimp_layer_tree_settings.h", |
+ "net/message_dispatcher.cc", |
+ "net/message_dispatcher.h", |
] |
defines = [ "BLIMP_COMMON_IMPLEMENTATION=1" ] |
@@ -24,3 +28,18 @@ component("blimp_common") { |
"//ui/gl", |
] |
} |
+ |
+test("blimp_common_unit_tests") { |
+ testonly = true |
+ deps = [ |
+ ":blimp_common", |
+ "//base", |
+ "//base/test:test_support", |
+ "//base/test:run_all_unittests", |
+ "//blimp/common/proto", |
+ "//testing/gmock", |
+ ] |
+ sources = [ |
+ "net/message_dispatcher_unittest.cc", |
+ ] |
+} |