| 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", |
| 11 "default_search_manager.h", | 11 "default_search_manager.h", |
| 12 "default_search_pref_migration.cc", | 12 "default_search_pref_migration.cc", |
| 13 "default_search_pref_migration.h", | 13 "default_search_pref_migration.h", |
| 14 "detect_desktop_search_win.cc", | 14 "desktop_search_win.cc", |
| 15 "detect_desktop_search_win.h", | 15 "desktop_search_win.h", |
| 16 "keyword_table.cc", | 16 "keyword_table.cc", |
| 17 "keyword_table.h", | 17 "keyword_table.h", |
| 18 "keyword_web_data_service.cc", | 18 "keyword_web_data_service.cc", |
| 19 "keyword_web_data_service.h", | 19 "keyword_web_data_service.h", |
| 20 "search_engine_data_type_controller.cc", | 20 "search_engine_data_type_controller.cc", |
| 21 "search_engine_data_type_controller.h", | 21 "search_engine_data_type_controller.h", |
| 22 "search_engine_type.h", | 22 "search_engine_type.h", |
| 23 "search_engines_pref_names.cc", | 23 "search_engines_pref_names.cc", |
| 24 "search_engines_pref_names.h", | 24 "search_engines_pref_names.h", |
| 25 "search_engines_switches.cc", | 25 "search_engines_switches.cc", |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 ":search_engines", | 95 ":search_engines", |
| 96 "//testing/gtest", | 96 "//testing/gtest", |
| 97 ] | 97 ] |
| 98 } | 98 } |
| 99 | 99 |
| 100 source_set("unit_tests") { | 100 source_set("unit_tests") { |
| 101 testonly = true | 101 testonly = true |
| 102 sources = [ | 102 sources = [ |
| 103 "default_search_manager_unittest.cc", | 103 "default_search_manager_unittest.cc", |
| 104 "default_search_pref_migration_unittest.cc", | 104 "default_search_pref_migration_unittest.cc", |
| 105 "detect_desktop_search_win_unittest.cc", | 105 "desktop_search_win_unittest.cc", |
| 106 "keyword_table_unittest.cc", | 106 "keyword_table_unittest.cc", |
| 107 "search_host_to_urls_map_unittest.cc", | 107 "search_host_to_urls_map_unittest.cc", |
| 108 "template_url_prepopulate_data_unittest.cc", | 108 "template_url_prepopulate_data_unittest.cc", |
| 109 "template_url_service_util_unittest.cc", | 109 "template_url_service_util_unittest.cc", |
| 110 "template_url_unittest.cc", | 110 "template_url_unittest.cc", |
| 111 ] | 111 ] |
| 112 if (enable_configuration_policy) { | 112 if (enable_configuration_policy) { |
| 113 sources += [ "default_search_policy_handler_unittest.cc" ] | 113 sources += [ "default_search_policy_handler_unittest.cc" ] |
| 114 } | 114 } |
| 115 | 115 |
| 116 deps = [ | 116 deps = [ |
| 117 ":test_support", | 117 ":test_support", |
| 118 "//components/pref_registry:test_support", | 118 "//components/pref_registry:test_support", |
| 119 "//testing/gmock", | 119 "//testing/gmock", |
| 120 "//testing/gtest", | 120 "//testing/gtest", |
| 121 ] | 121 ] |
| 122 } | 122 } |
| 123 | 123 |
| 124 json_to_struct("prepopulated_engines") { | 124 json_to_struct("prepopulated_engines") { |
| 125 visibility = [ ":*" ] | 125 visibility = [ ":*" ] |
| 126 | 126 |
| 127 source = "prepopulated_engines.json" | 127 source = "prepopulated_engines.json" |
| 128 schema_file = "prepopulated_engines_schema.json" | 128 schema_file = "prepopulated_engines_schema.json" |
| 129 namespace = "TemplateURLPrepopulateData" | 129 namespace = "TemplateURLPrepopulateData" |
| 130 } | 130 } |
| OLD | NEW |