Revert of Refactor the avatar button/icon class (patchset #14 id:320001 of https...
[chromium-blink-merge.git] / components / ownership / BUILD.gn
blobcdaf227552859275307bc618dcfe5451c8e7fb90
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 import("//build/config/crypto.gni")
6 import("//build/config/features.gni")
8 component("ownership") {
9   sources = [
10     "mock_owner_key_util.cc",
11     "mock_owner_key_util.h",
12     "owner_key_util.cc",
13     "owner_key_util.h",
14     "owner_key_util_impl.cc",
15     "owner_key_util_impl.h",
16     "owner_settings_service.cc",
17     "owner_settings_service.h",
18   ]
20   defines = [ "OWNERSHIP_IMPLEMENTATION" ]
22   deps = [
23     "//base",
24     "//components/keyed_service/core",
25     "//components/policy/proto",
26     "//components/policy:policy_component_common",
27     "//crypto",
28   ]
30   if (enable_configuration_policy) {
31     deps += [ "//components/policy" ]
32   }
34   if (use_nss_certs) {
35     deps += [ "//crypto:platform" ]
36   }
39 source_set("unit_tests") {
40   testonly = true
41   sources = [
42     "owner_key_util_impl_unittest.cc",
43   ]
45   configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
47   deps = [
48     ":ownership",
49     "//testing/gtest",
50   ]