| # 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("search") { |
| sources = [ |
| "search.cc", |
| "search.h", |
| ] |
| |
| deps = [ |
| "//base", |
| "//components/google/core/browser", |
| "//components/search_engines", |
| "//url", |
| ] |
| |
| if (!is_ios && !is_android) { |
| sources += [ |
| "url_validity_checker.h", |
| "url_validity_checker_impl.cc", |
| "url_validity_checker_impl.h", |
| ] |
| |
| deps += [ |
| "//net", |
| "//services/network/public/cpp", |
| ] |
| } |
| } |
| |
| source_set("unit_tests") { |
| testonly = true |
| sources = [ |
| "search_android_unittest.cc", |
| "search_unittest.cc", |
| ] |
| deps = [ |
| ":search", |
| "//base", |
| "//components/variations", |
| "//testing/gtest", |
| ] |
| |
| if (!is_ios && !is_android) { |
| sources += [ "url_validity_checker_impl_unittest.cc" ] |
| |
| deps += [ |
| "//net", |
| "//net:test_support", |
| "//services/network:test_support", |
| "//testing/gmock", |
| ] |
| } |
| } |