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