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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# 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("//third_party/protobuf/proto_library.gni")
assert(is_chromeos, "Non-ChromeOS builds cannot depend on //chromeos")
component("account_manager") {
sources = [
"account_manager.cc",
"account_manager.h",
"account_manager_facade_ash.cc",
"account_manager_facade_ash.h",
"account_manager_factory.cc",
"account_manager_factory.h",
]
public_deps = [
":account_manager_proto",
"//components/account_manager_core:account_manager_core",
]
deps = [
"//base",
"//chromeos/constants",
"//components/prefs:prefs",
"//google_apis",
"//net",
"//services/network/public/cpp:cpp",
]
defines = [ "IS_ACCOUNT_MANAGER_IMPL" ]
}
source_set("unit_tests") {
testonly = true
sources = [ "account_manager_unittest.cc" ]
deps = [
":account_manager",
"//base",
"//base/test:test_support",
"//components/prefs:test_support",
"//net",
"//services/network:test_support",
"//services/network/public/cpp:cpp",
"//testing/gmock",
"//testing/gtest",
]
}
proto_library("account_manager_proto") {
visibility = [ ":*" ]
sources = [ "tokens.proto" ]
proto_out_dir = "chromeos/components/account_manager"
}
|