OLD | NEW |
(Empty) | |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 if (is_android) { |
| 6 import("//build/config/android/rules.gni") |
| 7 } |
| 8 |
| 9 source_set("browser") { |
| 10 sources = [ |
| 11 "feedback.cc", |
| 12 "feedback.h", |
| 13 "feedback_sender.cc", |
| 14 "feedback_sender.h", |
| 15 "misspelling.cc", |
| 16 "misspelling.h", |
| 17 "pref_names.cc", |
| 18 "pref_names.h", |
| 19 "spellcheck_action.cc", |
| 20 "spellcheck_action.h", |
| 21 "spellcheck_dictionary.h", |
| 22 "spellcheck_host_metrics.cc", |
| 23 "spellcheck_host_metrics.h", |
| 24 "spellcheck_message_filter_platform.h", |
| 25 "spellcheck_message_filter_platform_android.cc", |
| 26 "spellcheck_platform.h", |
| 27 "spellcheck_platform_android.cc", |
| 28 "spellcheck_platform_mac.mm", |
| 29 "spellchecker_session_bridge_android.cc", |
| 30 "spellchecker_session_bridge_android.h", |
| 31 "spelling_service_client.cc", |
| 32 "spelling_service_client.h", |
| 33 "word_trimmer.cc", |
| 34 "word_trimmer.h", |
| 35 ] |
| 36 |
| 37 deps = [ |
| 38 "//base", |
| 39 "//components/data_use_measurement/core:core", |
| 40 "//components/prefs:prefs", |
| 41 "//components/spellcheck/common", |
| 42 "//components/user_prefs:user_prefs", |
| 43 "//content/public/browser", |
| 44 "//content/public/common", |
| 45 "//google_apis:google_apis", |
| 46 "//net:net", |
| 47 ] |
| 48 |
| 49 if (is_android) { |
| 50 sources += [ |
| 51 "android/component_jni_registrar.cc", |
| 52 "android/component_jni_registrar.h", |
| 53 ] |
| 54 deps += [ "android:jni_headers" ] |
| 55 } |
| 56 } |
| 57 |
| 58 source_set("unit_tests") { |
| 59 testonly = true |
| 60 sources = [ |
| 61 "feedback_sender_unittest.cc", |
| 62 "feedback_unittest.cc", |
| 63 "misspelling_unittest.cc", |
| 64 "spellcheck_action_unittest.cc", |
| 65 "spellcheck_host_metrics_unittest.cc", |
| 66 "spellcheck_platform_mac_unittest.cc", |
| 67 "word_trimmer_unittest.cc", |
| 68 ] |
| 69 |
| 70 deps = [ |
| 71 ":browser", |
| 72 "//base", |
| 73 "//base/test:test_support", |
| 74 "//components/spellcheck/common", |
| 75 "//components/variations:variations", |
| 76 "//content/test:test_support", |
| 77 "//net:test_support", |
| 78 "//testing/gtest", |
| 79 ] |
| 80 } |
OLD | NEW |