OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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("//ios/web/js_compile.gni") | 5 import("//ios/web/js_compile.gni") |
6 | 6 |
7 source_set("find_in_page") { | 7 source_set("find_in_page") { |
8 configs += [ "//build/config/compiler:enable_arc" ] | 8 configs += [ "//build/config/compiler:enable_arc" ] |
9 sources = [ | 9 sources = [ |
10 "find_in_page_controller.h", | 10 "find_in_page_controller.h", |
(...skipping 19 matching lines...) Expand all Loading... |
30 js_compile_unchecked("injected_js") { | 30 js_compile_unchecked("injected_js") { |
31 sources = [ | 31 sources = [ |
32 "resources/find_in_page.js", | 32 "resources/find_in_page.js", |
33 ] | 33 ] |
34 } | 34 } |
35 | 35 |
36 source_set("unit_tests") { | 36 source_set("unit_tests") { |
37 testonly = true | 37 testonly = true |
38 configs += [ "//build/config/compiler:enable_arc" ] | 38 configs += [ "//build/config/compiler:enable_arc" ] |
39 sources = [ | 39 sources = [ |
| 40 "find_in_page_js_unittest.mm", |
40 "find_tab_helper_unittest.mm", | 41 "find_tab_helper_unittest.mm", |
| 42 "js_findinpage_manager_unittest.mm", |
41 ] | 43 ] |
42 deps = [ | 44 deps = [ |
43 ":find_in_page", | 45 ":find_in_page", |
44 ":unit_tests_nonarc", | |
45 "//base", | 46 "//base", |
46 "//base/test:test_support", | 47 "//base/test:test_support", |
47 "//ios/chrome/browser/web:test_support", | 48 "//ios/chrome/browser/web:test_support", |
48 "//ios/web", | 49 "//ios/web", |
49 "//ios/web/public/test", | 50 "//ios/web/public/test", |
50 "//ios/web/public/test/fakes", | 51 "//ios/web/public/test/fakes", |
51 "//testing/gtest", | 52 "//testing/gtest", |
52 ] | 53 ] |
53 } | 54 } |
54 | |
55 source_set("unit_tests_nonarc") { | |
56 testonly = true | |
57 sources = [ | |
58 "find_in_page_js_unittest.mm", | |
59 "js_findinpage_manager_unittest.mm", | |
60 ] | |
61 deps = [ | |
62 ":find_in_page", | |
63 "//base", | |
64 "//base/test:test_support", | |
65 "//ios/chrome/browser/web:test_support", | |
66 "//ios/web", | |
67 "//testing/gtest", | |
68 ] | |
69 } | |
OLD | NEW |