| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 # GYP: //testing/android/native_test.gyp:native_test_support | |
| 8 source_set("native_test_support") { | 7 source_set("native_test_support") { |
| 9 testonly = true | 8 testonly = true |
| 10 sources = [ | 9 sources = [ |
| 11 "native_test_launcher.cc", | 10 "native_test_launcher.cc", |
| 12 "native_test_launcher.h", | 11 "native_test_launcher.h", |
| 13 "native_test_util.cc", | 12 "native_test_util.cc", |
| 14 "native_test_util.h", | 13 "native_test_util.h", |
| 15 ] | 14 ] |
| 16 deps = [ | 15 deps = [ |
| 17 ":native_test_jni_headers", | 16 ":native_test_jni_headers", |
| 18 "//base", | 17 "//base", |
| 19 "//base/test:test_support", | 18 "//base/test:test_support", |
| 20 "//base/third_party/dynamic_annotations", | 19 "//base/third_party/dynamic_annotations", |
| 21 "//testing/gtest", | 20 "//testing/gtest", |
| 22 ] | 21 ] |
| 23 } | 22 } |
| 24 | 23 |
| 25 # GYP: //testing/android/native_test.gyp:native_test_native_code | |
| 26 source_set("native_test_native_code") { | 24 source_set("native_test_native_code") { |
| 27 testonly = true | 25 testonly = true |
| 28 sources = [ | 26 sources = [ |
| 29 "native_test_jni_onload.cc", | 27 "native_test_jni_onload.cc", |
| 30 ] | 28 ] |
| 31 libs = [ "log" ] | 29 libs = [ "log" ] |
| 32 deps = [ | 30 deps = [ |
| 33 ":native_test_support", | 31 ":native_test_support", |
| 34 "//base", | 32 "//base", |
| 35 ] | 33 ] |
| 36 } | 34 } |
| 37 | 35 |
| 38 # GYP: //testing/android/native_test.gyp:native_test_java | |
| 39 android_library("native_test_java") { | 36 android_library("native_test_java") { |
| 40 testonly = true | 37 testonly = true |
| 41 deps = [ | 38 deps = [ |
| 42 "//base:base_java", | 39 "//base:base_java", |
| 43 "//base:base_java_test_support", | 40 "//base:base_java_test_support", |
| 44 "//testing/android/appurify_support:appurify_support_java", | 41 "//testing/android/appurify_support:appurify_support_java", |
| 45 "//testing/android/reporter:reporter_java", | 42 "//testing/android/reporter:reporter_java", |
| 46 ] | 43 ] |
| 47 srcjar_deps = [ "//base:base_native_libraries_gen" ] | 44 srcjar_deps = [ "//base:base_native_libraries_gen" ] |
| 48 java_files = [ | 45 java_files = [ |
| 49 "java/src/org/chromium/native_test/NativeBrowserTestActivity.java", | 46 "java/src/org/chromium/native_test/NativeBrowserTestActivity.java", |
| 50 "java/src/org/chromium/native_test/NativeTest.java", | 47 "java/src/org/chromium/native_test/NativeTest.java", |
| 51 "java/src/org/chromium/native_test/NativeTestInstrumentationTestRunner.java"
, | 48 "java/src/org/chromium/native_test/NativeTestInstrumentationTestRunner.java"
, |
| 52 "java/src/org/chromium/native_test/NativeUnitTest.java", | 49 "java/src/org/chromium/native_test/NativeUnitTest.java", |
| 53 "java/src/org/chromium/native_test/NativeUnitTestActivity.java", | 50 "java/src/org/chromium/native_test/NativeUnitTestActivity.java", |
| 54 "java/src/org/chromium/native_test/NativeUnitTestNativeActivity.java", | 51 "java/src/org/chromium/native_test/NativeUnitTestNativeActivity.java", |
| 55 ] | 52 ] |
| 56 jar_excluded_patterns = [ "*/NativeLibraries.class" ] | 53 jar_excluded_patterns = [ "*/NativeLibraries.class" ] |
| 57 } | 54 } |
| 58 | 55 |
| 59 # GYP: //testing/android/native_test.gyp:native_test_jni_headers | |
| 60 generate_jni("native_test_jni_headers") { | 56 generate_jni("native_test_jni_headers") { |
| 61 sources = [ | 57 sources = [ |
| 62 "java/src/org/chromium/native_test/NativeTest.java", | 58 "java/src/org/chromium/native_test/NativeTest.java", |
| 63 ] | 59 ] |
| 64 jni_package = "testing" | 60 jni_package = "testing" |
| 65 } | 61 } |
| OLD | NEW |