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 # GYP version: components/gcm_driver.gypi:instance_id_driver | 5 # GYP version: components/gcm_driver.gypi:instance_id_driver |
6 source_set("instance_id") { | 6 source_set("instance_id") { |
7 sources = [ | 7 sources = [ |
8 "android/component_jni_registrar.cc", | 8 "android/component_jni_registrar.cc", |
9 "android/component_jni_registrar.h", | 9 "android/component_jni_registrar.h", |
10 "instance_id.cc", | 10 "instance_id.cc", |
(...skipping 23 matching lines...) Expand all Loading... |
34 deps += [ "android:jni_headers" ] | 34 deps += [ "android:jni_headers" ] |
35 } | 35 } |
36 } | 36 } |
37 | 37 |
38 # GYP version: components/gcm_driver.gypi:instance_id_test_support | 38 # GYP version: components/gcm_driver.gypi:instance_id_test_support |
39 source_set("test_support") { | 39 source_set("test_support") { |
40 testonly = true | 40 testonly = true |
41 sources = [ | 41 sources = [ |
42 "fake_gcm_driver_for_instance_id.cc", | 42 "fake_gcm_driver_for_instance_id.cc", |
43 "fake_gcm_driver_for_instance_id.h", | 43 "fake_gcm_driver_for_instance_id.h", |
| 44 "scoped_use_fake_instance_id_android.cc", |
| 45 "scoped_use_fake_instance_id_android.h", |
44 ] | 46 ] |
45 | 47 |
| 48 public_deps = [ |
| 49 ":instance_id", |
| 50 ] |
46 deps = [ | 51 deps = [ |
47 ":instance_id", | |
48 "//base", | 52 "//base", |
49 "//components/gcm_driver:test_support", | 53 "//components/gcm_driver:test_support", |
50 "//testing/gtest", | 54 "//testing/gtest", |
51 ] | 55 ] |
| 56 |
| 57 if (is_android) { |
| 58 deps += [ "android:test_support_jni_headers" ] |
| 59 } |
52 } | 60 } |
53 | 61 |
54 source_set("unit_tests") { | 62 source_set("unit_tests") { |
55 testonly = true | 63 testonly = true |
56 sources = [ | 64 sources = [ |
57 "instance_id_driver_unittest.cc", | 65 "instance_id_driver_unittest.cc", |
58 ] | 66 ] |
59 | 67 |
60 deps = [ | 68 deps = [ |
61 ":instance_id", | 69 ":instance_id", |
62 ":test_support", | 70 ":test_support", |
63 "//base", | 71 "//base", |
64 "//google_apis/gcm", | 72 "//google_apis/gcm", |
65 "//testing/gtest", | 73 "//testing/gtest", |
66 ] | 74 ] |
67 } | 75 } |
OLD | NEW |