Stack sampling profiler: add fire-and-forget interface
[chromium-blink-merge.git] / components / gcm_driver / instance_id / BUILD.gn
blob4b578d30ce26937f07319d4e8123fe8d622251f5
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
3 # found in the LICENSE file.
5 # GYP version: components/gcm_driver.gypi:instance_id_driver
6 source_set("instance_id") {
7   sources = [
8     "instance_id.cc",
9     "instance_id.h",
10     "instance_id_driver.cc",
11     "instance_id_driver.h",
12     "instance_id_impl.cc",
13     "instance_id_impl.h",
14   ]
16   deps = [
17     "//base",
18     "//crypto",
19     "//components/gcm_driver",
20   ]
22   if (is_android) {
23     sources -= [
24       "instance_id_impl.cc",
25       "instance_id_impl.h",
26     ]
27     sources += [
28       "instance_id_android.cc",
29       "instance_id_android.h",
30     ]
31   }
34 # GYP version: components/gcm_driver.gypi:instance_id_test_support
35 source_set("test_support") {
36   testonly = true
37   sources = [
38     "fake_gcm_driver_for_instance_id.cc",
39     "fake_gcm_driver_for_instance_id.h",
40   ]
42   deps = [
43     ":instance_id",
44     "//components/gcm_driver:test_support",
45     "//testing/gtest",
46   ]
49 source_set("unit_tests") {
50   testonly = true
51   sources = [
52     "instance_id_driver_unittest.cc",
53   ]
55   deps = [
56     ":instance_id",
57     ":test_support",
58     "//testing/gtest",
59   ]