| 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 "instance_id_test_utils_android.cc", |
| 45 "instance_id_test_utils_android.h", |
| 44 ] | 46 ] |
| 45 | 47 |
| 46 deps = [ | 48 deps = [ |
| 47 ":instance_id", | 49 ":instance_id", |
| 48 "//base", | 50 "//base", |
| 49 "//components/gcm_driver:test_support", | 51 "//components/gcm_driver:test_support", |
| 50 "//testing/gtest", | 52 "//testing/gtest", |
| 51 ] | 53 ] |
| 54 |
| 55 if (is_android) { |
| 56 deps += [ "android:test_support_jni_headers" ] |
| 57 } |
| 52 } | 58 } |
| 53 | 59 |
| 54 source_set("unit_tests") { | 60 source_set("unit_tests") { |
| 55 testonly = true | 61 testonly = true |
| 56 sources = [ | 62 sources = [ |
| 57 "instance_id_driver_unittest.cc", | 63 "instance_id_driver_unittest.cc", |
| 58 ] | 64 ] |
| 59 | 65 |
| 60 deps = [ | 66 deps = [ |
| 61 ":instance_id", | 67 ":instance_id", |
| 62 ":test_support", | 68 ":test_support", |
| 63 "//base", | 69 "//base", |
| 64 "//google_apis/gcm", | 70 "//google_apis/gcm", |
| 65 "//testing/gtest", | 71 "//testing/gtest", |
| 66 ] | 72 ] |
| 67 } | 73 } |
| OLD | NEW |