Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(549)

Side by Side Diff: components/policy/android/BUILD.gn

Issue 1387633002: Update instrumentation tests to use PreTestHooks for policies (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments, use a map instead of hacking PolicyData's equality Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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/android/rules.gni") 5 import("//build/config/android/rules.gni")
6 6
7 _jni_sources = [ 7 _jni_sources = [
8 "java/src/org/chromium/policy/PolicyConverter.java", 8 "java/src/org/chromium/policy/PolicyConverter.java",
9 "java/src/org/chromium/policy/CombinedPolicyProvider.java", 9 "java/src/org/chromium/policy/CombinedPolicyProvider.java",
10 ] 10 ]
11 11
12 # GYP: //components/components.gyp:policy_java 12 # GYP: //components/components.gyp:policy_java
13 android_library("policy_java") { 13 android_library("policy_java") {
14 deps = [ 14 deps = [
15 "//base:base_java", 15 "//base:base_java",
16 ] 16 ]
17 java_files = 17 java_files =
18 _jni_sources + [ 18 _jni_sources + [
19 "java/src/org/chromium/policy/AbstractAppRestrictionsProvider.java", 19 "java/src/org/chromium/policy/AbstractAppRestrictionsProvider.java",
20 "java/src/org/chromium/policy/AppRestrictionsProvider.java", 20 "java/src/org/chromium/policy/AppRestrictionsProvider.java",
21 "java/src/org/chromium/policy/PolicyProvider.java", 21 "java/src/org/chromium/policy/PolicyProvider.java",
22 ] 22 ]
23 } 23 }
24 24
25 # GYP: //components/components.gyp:policy_test_support_java
26 android_library("policy_java_test_support") {
27 testonly = true
28 deps = [
29 "//base:base_java",
30 "//base:base_java_test_support",
31 ":policy_java",
32 ]
33 java_files = [
34 "javatests/src/org/chromium/policy/test/annotations/Policies.java",
35 "javatests/src/org/chromium/policy/test/PolicyData.java",
36 ]
37 }
38
25 # GYP: //components/components.gyp:policy_jni_headers 39 # GYP: //components/components.gyp:policy_jni_headers
26 generate_jni("jni_headers") { 40 generate_jni("jni_headers") {
27 visibility = [ "//components/policy/*" ] 41 visibility = [ "//components/policy/*" ]
28 sources = _jni_sources 42 sources = _jni_sources
29 jni_package = "policy" 43 jni_package = "policy"
30 } 44 }
31 45
46 # GYP: //components/components_test.gyp:components_junit_tests
32 junit_binary("components_policy_junit_tests") { 47 junit_binary("components_policy_junit_tests") {
33 java_files = [ 48 java_files = [
34 "junit/src/org/chromium/policy/AbstractAppRestrictionsProviderTest.java", 49 "junit/src/org/chromium/policy/AbstractAppRestrictionsProviderTest.java",
35 "junit/src/org/chromium/policy/CombinedPolicyProviderTest.java", 50 "junit/src/org/chromium/policy/CombinedPolicyProviderTest.java",
51 "junit/src/org/chromium/policy/test/annotations/PoliciesTest.java",
36 ] 52 ]
37 deps = [ 53 deps = [
54 ":policy_java_test_support",
55 ":policy_java",
38 "//base:base_java", 56 "//base:base_java",
39 ":policy_java", 57 "//third_party/junit:hamcrest",
40 ] 58 ]
41 } 59 }
OLDNEW
« no previous file with comments | « components/policy.gypi ('k') | components/policy/android/java/src/org/chromium/policy/AbstractAppRestrictionsProvider.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698