| # 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", |
| "//chromeos/geolocation", |
| "//net", |
| "//services/network:test_support", |
| "//services/network/public/cpp", |
| "//testing/gtest", |
| ] |
| sources = [ |
| "timezone_unittest.cc", |
| ] |
| } |