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