1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/android/rules.gni")
group("android") {
testonly = true
deps = [
":system_java",
":mojo_javatests",
]
}
generate_jni("system_java_jni_headers") {
sources = [
"system/src/org/chromium/mojo/system/impl/CoreImpl.java",
]
jni_package = "mojo"
}
source_set("libsystem_java") {
sources = [
"system/core_impl.cc",
"system/core_impl.h",
]
deps = [
":system_java_jni_headers",
"//mojo/edk/system",
"//mojo/environment:chromium",
]
}
android_library("system_java") {
java_files = [
"system/src/org/chromium/mojo/system/impl/CoreImpl.java",
"system/src/org/chromium/mojo/system/impl/DataPipeConsumerHandleImpl.java",
"system/src/org/chromium/mojo/system/impl/DataPipeProducerHandleImpl.java",
"system/src/org/chromium/mojo/system/impl/HandleBase.java",
"system/src/org/chromium/mojo/system/impl/MessagePipeHandleImpl.java",
"system/src/org/chromium/mojo/system/impl/SharedBufferHandleImpl.java",
"system/src/org/chromium/mojo/system/impl/UntypedHandleImpl.java",
]
deps = [
"//base:base_java",
"//mojo/public/java:system",
]
}
android_library("mojo_javatests") {
testonly = true
java_files = [
"javatests/src/org/chromium/mojo/HandleMock.java",
"javatests/src/org/chromium/mojo/MojoTestCase.java",
"javatests/src/org/chromium/mojo/TestUtils.java",
"javatests/src/org/chromium/mojo/bindings/BindingsHelperTest.java",
"javatests/src/org/chromium/mojo/bindings/BindingsTest.java",
"javatests/src/org/chromium/mojo/bindings/BindingsTestUtils.java",
"javatests/src/org/chromium/mojo/bindings/CallbacksTest.java",
"javatests/src/org/chromium/mojo/bindings/ConnectorTest.java",
"javatests/src/org/chromium/mojo/bindings/ExecutorFactoryTest.java",
"javatests/src/org/chromium/mojo/bindings/InterfacesTest.java",
"javatests/src/org/chromium/mojo/bindings/MessageHeaderTest.java",
"javatests/src/org/chromium/mojo/bindings/ReadAndDispatchMessageTest.java",
"javatests/src/org/chromium/mojo/bindings/RouterTest.java",
"javatests/src/org/chromium/mojo/bindings/SerializationTest.java",
"javatests/src/org/chromium/mojo/bindings/ValidationTest.java",
"javatests/src/org/chromium/mojo/bindings/ValidationTestUtil.java",
"javatests/src/org/chromium/mojo/bindings/ValidationTestUtilTest.java",
"javatests/src/org/chromium/mojo/bindings/test/mojom/mojo/IntegrationTestInterface2TestHelper.java",
"javatests/src/org/chromium/mojo/system/impl/CoreImplTest.java",
]
deps = [
":system_java",
"//base:base_java",
"//base:base_java_test_support",
"//mojo/public/interfaces/bindings/tests:test_interfaces_java",
"//mojo/public/java:bindings",
"//mojo/public/java:system",
]
}
|