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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: components/policy/android/BUILD.gn
diff --git a/components/policy/android/BUILD.gn b/components/policy/android/BUILD.gn
index 53bc165c223c26e0afb8518a116e723b503ac08c..ab1003b43d317b7ea422753f9ec1c875bcc5624f 100644
--- a/components/policy/android/BUILD.gn
+++ b/components/policy/android/BUILD.gn
@@ -22,6 +22,20 @@ android_library("policy_java") {
]
}
+# GYP: //components/components.gyp:policy_test_support_java
+android_library("policy_java_test_support") {
+ testonly = true
+ deps = [
+ "//base:base_java",
+ "//base:base_java_test_support",
+ ":policy_java",
+ ]
+ java_files = [
+ "javatests/src/org/chromium/policy/test/annotations/Policies.java",
+ "javatests/src/org/chromium/policy/test/PolicyData.java",
+ ]
+}
+
# GYP: //components/components.gyp:policy_jni_headers
generate_jni("jni_headers") {
visibility = [ "//components/policy/*" ]
@@ -29,13 +43,17 @@ generate_jni("jni_headers") {
jni_package = "policy"
}
+# GYP: //components/components_test.gyp:components_junit_tests
junit_binary("components_policy_junit_tests") {
java_files = [
"junit/src/org/chromium/policy/AbstractAppRestrictionsProviderTest.java",
"junit/src/org/chromium/policy/CombinedPolicyProviderTest.java",
+ "junit/src/org/chromium/policy/test/annotations/PoliciesTest.java",
]
deps = [
- "//base:base_java",
+ ":policy_java_test_support",
":policy_java",
+ "//base:base_java",
+ "//third_party/junit:hamcrest",
]
}
« 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