Index: blimp/net/BUILD.gn |
diff --git a/blimp/net/BUILD.gn b/blimp/net/BUILD.gn |
new file mode 100644 |
index 0000000000000000000000000000000000000000..5a1784c676f7c6c769f79d537a561f935de7b493 |
--- /dev/null |
+++ b/blimp/net/BUILD.gn |
@@ -0,0 +1,48 @@ |
+# Copyright 2015 The Chromium Authors. All rights reserved. |
+# 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_net") { |
+ sources = [ |
+ "blimp_message_dispatcher.cc", |
+ "blimp_message_dispatcher.h", |
+ "blimp_message_receiver.h", |
+ "blimp_net_export.h", |
+ ] |
+ |
+ defines = [ "BLIMP_NET_IMPLEMENTATION=1" ] |
+ |
+ deps = [ |
+ "//base", |
+ "//blimp/common/proto", |
+ "//net", |
+ ] |
+} |
+ |
+test("blimp_net_tests") { |
+ sources = [ |
+ "blimp_message_dispatcher_unittest.cc", |
+ ] |
+ |
+ deps = [ |
+ ":blimp_net", |
+ "//base", |
+ "//base/test:run_all_unittests", |
+ "//base/test:test_support", |
+ "//blimp/common/proto", |
+ "//net:test_support", |
+ "//testing/gmock", |
+ "//testing/gtest", |
+ ] |
+} |
+ |
+# TODO(GYP): Delete this after we've converted everything to GN. |
+# # The _run targets exist only for compatibility w/ GYP. |
+group("blimp_net_tests_run") { |
+ testonly = true |
+ deps = [ |
+ ":blimp_net_tests", |
+ ] |
+} |