Index: components/password_manager/content/renderer/BUILD.gn |
diff --git a/components/password_manager/content/renderer/BUILD.gn b/components/password_manager/content/renderer/BUILD.gn |
new file mode 100644 |
index 0000000000000000000000000000000000000000..7c47db3262d119b3f6df949c715402dfe2e839b5 |
--- /dev/null |
+++ b/components/password_manager/content/renderer/BUILD.gn |
@@ -0,0 +1,50 @@ |
+# Copyright 2014 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. |
+ |
+static_library("renderer") { |
+ sources = [ |
+ "credential_manager_dispatcher.cc", |
+ "credential_manager_dispatcher.h", |
+ ] |
+ |
+ deps = [ |
+ "//base", |
+ "//components/strings", |
+ "//ipc", |
+ "//third_party/WebKit/public:blink", |
+ "//url", |
+ ] |
+ |
+ if (is_win) { |
+ # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
+ cflags = [ "/wd4267" ] |
+ } |
Ilya Sherman
2014/08/19 23:55:51
Could we avoid introducing size_t to int truncatio
Mike West
2014/08/20 13:17:19
I think I can drop this, actually. Thanks for poin
|
+} |
+ |
+static_library("test_support") { |
+ sources = [ |
+ "test_credential_manager_dispatcher.cc", |
+ "test_credential_manager_dispatcher.h", |
+ ] |
+ |
+ deps = [ |
+ "//testing/gmock", |
+ "//third_party/WebKit/public:blink", |
+ ] |
+} |
+ |
+source_set("unit_tests") { |
+ sources = [ |
+ "credential_manager_dispatcher_unittest.cc" |
+ ] |
+ |
+ deps = [ |
+ ":renderer", |
+ ":test_support", |
+ "//testing/gmock", |
+ "//testing/gtest", |
+ "//third_party/WebKit/public:blink", |
+ ] |
+} |
+ |