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 if (is_android) { | 4 if (is_android) { |
5 import("//build/config/android/rules.gni") | 5 import("//build/config/android/rules.gni") |
6 } | 6 } |
7 | 7 |
8 static_library("invalidation") { | 8 static_library("invalidation") { |
9 sources = [ | 9 sources = [ |
10 "ack_handle.cc", | 10 "ack_handle.cc", |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 } | 108 } |
109 } | 109 } |
110 | 110 |
111 group("unittests") { | 111 group("unittests") { |
112 testonly = true | 112 testonly = true |
113 deps = [ | 113 deps = [ |
114 ":invalidation", | 114 ":invalidation", |
115 ":test_support", | 115 ":test_support", |
116 ] | 116 ] |
117 if (is_android) { | 117 if (is_android) { |
118 deps += [ | 118 deps += [ ":jni_headers" ] |
119 ":javatests", | |
120 ":jni_headers", | |
121 ] | |
122 } | 119 } |
123 } | 120 } |
124 | 121 |
125 static_library("test_support") { | 122 static_library("test_support") { |
126 testonly = true | 123 testonly = true |
127 sources = [ | 124 sources = [ |
128 "fake_invalidation_handler.cc", | 125 "fake_invalidation_handler.cc", |
129 "fake_invalidation_handler.h", | 126 "fake_invalidation_handler.h", |
130 "fake_invalidation_state_tracker.cc", | 127 "fake_invalidation_state_tracker.cc", |
131 "fake_invalidation_state_tracker.h", | 128 "fake_invalidation_state_tracker.h", |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 ] | 189 ] |
193 DEPRECATED_java_in_dir = "android/javatests/src" | 190 DEPRECATED_java_in_dir = "android/javatests/src" |
194 } | 191 } |
195 generate_jni("jni_headers") { | 192 generate_jni("jni_headers") { |
196 sources = [ | 193 sources = [ |
197 "android/java/src/org/chromium/components/invalidation/InvalidationService
.java", | 194 "android/java/src/org/chromium/components/invalidation/InvalidationService
.java", |
198 ] | 195 ] |
199 jni_package = "components/invalidation" | 196 jni_package = "components/invalidation" |
200 } | 197 } |
201 } | 198 } |
OLD | NEW |