summaryrefslogtreecommitdiff
path: root/chromium/chromeos/timezone/BUILD.gn
blob: 0e91f53be1c9c250aa319a7d6d8d904fcda86b4b (plain)
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
# Copyright 2019 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("//testing/test.gni")

assert(is_chromeos, "Non-Chrome-OS builds must not depend on //chromeos")

component("timezone") {
  defines = [ "IS_CHROMEOS_TIMEZONE_IMPL" ]
  deps = [
    "//base",
    "//chromeos/geolocation",
    "//components/prefs",
    "//google_apis",
    "//net",
    "//services/network/public/cpp",
  ]
  sources = [
    "timezone_provider.cc",
    "timezone_provider.h",
    "timezone_request.cc",
    "timezone_request.h",
    "timezone_resolver.cc",
    "timezone_resolver.h",
  ]
}

source_set("unit_tests") {
  testonly = true
  deps = [
    ":timezone",
    "//base",
    "//base/test:test_support",
    "//chromeos/geolocation",
    "//net",
    "//services/network:test_support",
    "//services/network/public/cpp",
    "//testing/gtest",
  ]
  sources = [ "timezone_unittest.cc" ]
}