Roll src/third_party/WebKit f36d5e0:68b67cd (svn 193299:193303)
[chromium-blink-merge.git] / components / ownership / BUILD.gn
blob1bca927b1e0e7539949095b4b7023b62fe908593
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/features.gni")
7 component("ownership") {
8   sources = [
9     "mock_owner_key_util.cc",
10     "mock_owner_key_util.h",
11     "owner_key_util.cc",
12     "owner_key_util.h",
13     "owner_key_util_impl.cc",
14     "owner_key_util_impl.h",
15     "owner_settings_service.cc",
16     "owner_settings_service.h",
17   ]
19   defines = [ "OWNERSHIP_IMPLEMENTATION" ]
21   deps = [
22     "//base",
23     "//components/keyed_service/core",
24     "//components/policy/proto",
25     "//components/policy:policy_component_common",
26     "//crypto",
27   ]
29   if (enable_configuration_policy) {
30     deps += [ "//components/policy" ]
31   }
34 source_set("unit_tests") {
35   testonly = true
36   sources = [
37     "owner_key_util_impl_unittest.cc",
38   ]
40   configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
42   deps = [
43     ":ownership",
44     "//testing/gtest",
45   ]