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

Unified Diff: components/safe_browsing_db/BUILD.gn

Issue 1415923004: Move prefix_set and parts of safe_browsing_util into a new component safe_browsing_db. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Suppress the 4267 warning in BUILD.gn Created 5 years, 2 months 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 | « components/safe_browsing_db.gypi ('k') | components/safe_browsing_db/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/safe_browsing_db/BUILD.gn
diff --git a/components/safe_browsing_db/BUILD.gn b/components/safe_browsing_db/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..4147fe9b59ff8cb1b75138856727c6e35a67367b
--- /dev/null
+++ b/components/safe_browsing_db/BUILD.gn
@@ -0,0 +1,49 @@
+# 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.
+
+group("safe_browsing_db") {
+ deps = [
+ ":prefix_set",
+ ":safe_browsing_db_util",
+ ]
+}
+
+source_set("prefix_set") {
+ sources = [
+ "prefix_set.cc",
+ "prefix_set.h",
+ ]
+ deps = [
+ "//base",
+ ]
+}
+
+source_set("safe_browsing_db_util") {
+ sources = [
+ "safe_browsing_db_util.cc",
+ "safe_browsing_db_util.h",
+ ]
+ deps = [
+ "//base",
+ "//crypto",
+ ]
+}
+
+source_set("unit_tests") {
+ testonly = true
+ sources = [
+ "prefix_set_unittest.cc",
+ "safe_browsing_db_util_unittest.cc",
+ ]
+ deps = [
+ ":prefix_set",
+ ":safe_browsing_db_util",
+ "//base",
+ "//testing/gtest",
+ ]
+ if (is_win) {
+ # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
+ cflags = [ "/wd4267" ] # Conversion from size_t to 'type'.
+ }
+}
« no previous file with comments | « components/safe_browsing_db.gypi ('k') | components/safe_browsing_db/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698