diff options
author | brettw <brettw@chromium.org> | 2015-08-21 15:06:00 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-08-21 22:06:45 +0000 |
commit | 0741cb1c9b944e7a218a84870bdc177a72cb2998 (patch) | |
tree | 4dbdb50320213f29523e2695eb9561b1a4d93826 /components/suggestions | |
parent | 3306c2ace12f90742bae7c265cf4e77a2b8033d7 (diff) | |
download | chromium_src-0741cb1c9b944e7a218a84870bdc177a72cb2998.zip chromium_src-0741cb1c9b944e7a218a84870bdc177a72cb2998.tar.gz chromium_src-0741cb1c9b944e7a218a84870bdc177a72cb2998.tar.bz2 |
Sync more GN unit tests with GYP.
This adds about 600 more tests.
Tests added: invalidation, navigation interception, feedback, search, sync driver, enhanced bookmarks, search engines, sessions, data reduction proxy, favicon, constrained window, autofill, metrics, keyed service, bookmarks, suggestions, audio modem
I renamed ui_zoom to "zoom" according to GN style. I tweaked some jingle public dependencies so the right include directories get forwarded along with the corresponding uses in the headers.
Reland of http://crrev.com/1301743003
TBR=dpranke@chromium.org
Review URL: https://codereview.chromium.org/1304163005
Cr-Commit-Position: refs/heads/master@{#344874}
Diffstat (limited to 'components/suggestions')
-rw-r--r-- | components/suggestions/BUILD.gn | 29 |
1 files changed, 23 insertions, 6 deletions
diff --git a/components/suggestions/BUILD.gn b/components/suggestions/BUILD.gn index 5829176..389a19b 100644 --- a/components/suggestions/BUILD.gn +++ b/components/suggestions/BUILD.gn @@ -2,7 +2,7 @@ # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. -static_library("suggestions") { +source_set("suggestions") { sources = [ "blacklist_store.cc", "blacklist_store.h", @@ -21,17 +21,19 @@ static_library("suggestions") { "suggestions_utils.h", ] - deps = [ + public_deps = [ "//base", - "//components/keyed_service/core", - "//components/pref_registry", "//components/suggestions/proto", - "//components/variations", - "//components/variations/net", "//net", "//ui/gfx", "//url", ] + deps = [ + "//components/keyed_service/core", + "//components/pref_registry", + "//components/variations", + "//components/variations/net", + ] if (is_ios) { sources += [ "image_encoder_ios.mm" ] @@ -39,3 +41,18 @@ static_library("suggestions") { sources += [ "image_encoder.cc" ] } } + +source_set("unit_tests") { + testonly = true + sources = [ + "blacklist_store_unittest.cc", + "image_manager_unittest.cc", + "suggestions_service_unittest.cc", + "suggestions_store_unittest.cc", + ] + deps = [ + ":suggestions", + "//testing/gmock", + "//testing/gtest", + ] +} |