1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# Copyright 2019 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.
# TODO(csharrison): Move subresource_filter_browsertests here.
if (is_android) {
import("//build/config/android/rules.gni")
generate_jni("jni_headers") {
sources = [
"../../android/javatests/src/org/chromium/chrome/browser/subresource_filter/TestRulesetPublisher.java",
]
}
android_library("subresource_filter_java_test_support") {
testonly = true
java_files = [ "../../android/javatests/src/org/chromium/chrome/browser/subresource_filter/TestRulesetPublisher.java" ]
deps = [
"//base:base_java",
]
}
android_library("subresource_filter_javatests") {
testonly = true
java_files = [ "../../android/javatests/src/org/chromium/chrome/browser/subresource_filter/SubresourceFilterTest.java" ]
deps = [
":subresource_filter_java_test_support",
"//base:base_java_test_support",
"//chrome/android:chrome_java",
"//chrome/android:chrome_test_java",
"//chrome/test/android:chrome_java_test_support",
"//components/safe_browsing/android:safe_browsing_java",
"//content/public/test/android:content_java_test_support",
"//net/android:net_java_test_support",
"//third_party/android_support_test_runner:rules_java",
"//third_party/android_support_test_runner:runner_java",
"//third_party/junit",
]
}
}
source_set("test_support") {
testonly = true
sources = [
"test_ruleset_publisher.cc",
"test_ruleset_publisher.h",
]
deps = [
"//chrome/browser",
"//components/subresource_filter/content/browser:browser",
"//components/subresource_filter/core/browser:browser",
"//components/subresource_filter/core/common:test_support",
"//net",
"//services/network/public/mojom",
"//testing/gtest:gtest",
"//third_party/protobuf:protobuf_lite",
]
if (is_android) {
sources += [ "android_test_ruleset_publisher.cc" ]
deps += [ ":jni_headers" ]
}
}
|