OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/features.gni") | 5 import("//build/config/features.gni") |
6 import("//tools/json_to_struct/json_to_struct.gni") | 6 import("//tools/json_to_struct/json_to_struct.gni") |
7 | 7 |
8 static_library("search_engines") { | 8 static_library("search_engines") { |
9 sources = [ | 9 sources = [ |
10 "default_search_manager.cc", | 10 "default_search_manager.cc", |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 | 79 |
80 source_set("test_support") { | 80 source_set("test_support") { |
81 testonly = true | 81 testonly = true |
82 sources = [ | 82 sources = [ |
83 "default_search_pref_test_util.cc", | 83 "default_search_pref_test_util.cc", |
84 "default_search_pref_test_util.h", | 84 "default_search_pref_test_util.h", |
85 "testing_search_terms_data.cc", | 85 "testing_search_terms_data.cc", |
86 "testing_search_terms_data.h", | 86 "testing_search_terms_data.h", |
87 ] | 87 ] |
88 | 88 |
| 89 public_deps = [ |
| 90 ":search_engines", |
| 91 "//testing/gtest", |
| 92 ] |
| 93 } |
| 94 |
| 95 source_set("unit_tests") { |
| 96 testonly = true |
| 97 sources = [ |
| 98 "default_search_manager_unittest.cc", |
| 99 "default_search_policy_handler_unittest.cc", |
| 100 "default_search_pref_migration_unittest.cc", |
| 101 "keyword_table_unittest.cc", |
| 102 "search_host_to_urls_map_unittest.cc", |
| 103 "template_url_prepopulate_data_unittest.cc", |
| 104 "template_url_service_util_unittest.cc", |
| 105 "template_url_unittest.cc", |
| 106 ] |
89 deps = [ | 107 deps = [ |
90 ":search_engines", | 108 ":test_support", |
| 109 "//testing/gmock", |
91 "//testing/gtest", | 110 "//testing/gtest", |
92 ] | 111 ] |
93 } | 112 } |
94 | 113 |
95 json_to_struct("prepopulated_engines") { | 114 json_to_struct("prepopulated_engines") { |
96 visibility = [ ":*" ] | 115 visibility = [ ":*" ] |
97 | 116 |
98 source = "prepopulated_engines.json" | 117 source = "prepopulated_engines.json" |
99 schema_file = "prepopulated_engines_schema.json" | 118 schema_file = "prepopulated_engines_schema.json" |
100 namespace = "TemplateURLPrepopulateData" | 119 namespace = "TemplateURLPrepopulateData" |
101 } | 120 } |
OLD | NEW |