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 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123
|
# Copyright 2018 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//chromeos/dbus/config/use_real_dbus_clients.gni")
assert(is_chromeos, "Non-ChromeOS builds cannot depend on //chromeos/ash")
component("drivefs") {
sources = [
"drivefs_auth.cc",
"drivefs_auth.h",
"drivefs_bootstrap.cc",
"drivefs_bootstrap.h",
"drivefs_host.cc",
"drivefs_host.h",
"drivefs_http_client.cc",
"drivefs_http_client.h",
"drivefs_pinning_manager.cc",
"drivefs_pinning_manager.h",
"drivefs_search.cc",
"drivefs_search.h",
"drivefs_search_query.cc",
"drivefs_search_query.h",
"drivefs_search_query_delegate.cc",
"drivefs_search_query_delegate.h",
"drivefs_session.cc",
"drivefs_session.h",
"drivefs_util.h",
]
if (!use_real_dbus_clients) {
sources += [
"fake_drivefs_launcher_client.cc",
"fake_drivefs_launcher_client.h",
]
}
deps = [
"//ash/constants",
"//base",
"//chromeos/ash/components/dbus",
"//chromeos/ash/components/dbus/cros_disks",
"//chromeos/ash/components/dbus/spaced",
"//chromeos/ash/components/dbus/userdataauth",
"//chromeos/ash/components/disks",
"//chromeos/ash/components/drivefs/mojom",
"//chromeos/ash/components/drivefs/mojom:pinning_manager_types",
"//chromeos/ash/components/file_manager",
"//chromeos/ash/components/network",
"//chromeos/components/mojo_bootstrap",
"//chromeos/dbus/power:power",
"//chromeos/dbus/power:power_manager_proto",
"//components/account_id",
"//components/drive",
"//components/signin/public/identity_manager",
"//dbus",
"//google_apis",
"//mojo/public/cpp/bindings",
"//mojo/public/cpp/platform",
"//net",
"//services/network/public/cpp:cpp",
]
defines = [ "IS_CHROMEOS_ASH_COMPONENTS_DRIVEFS_IMPL" ]
}
source_set("test_support") {
testonly = true
sources = [
"fake_drivefs.cc",
"fake_drivefs.h",
]
deps = [
":drivefs",
"//base",
"//chromeos/ash/components/dbus:test_support",
"//chromeos/ash/components/dbus/cros_disks",
"//chromeos/ash/components/drivefs/mojom",
"//net",
"//testing/gmock",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"drivefs_auth_unittest.cc",
"drivefs_bootstrap_unittest.cc",
"drivefs_host_unittest.cc",
"drivefs_http_client_unittest.cc",
"drivefs_pinning_manager_unittest.cc",
"drivefs_search_query_unittest.cc",
"drivefs_search_unittest.cc",
"drivefs_session_unittest.cc",
]
deps = [
":drivefs",
":test_support",
"//ash/constants",
"//base",
"//base/test:test_support",
"//chromeos/ash/components/dbus/spaced",
"//chromeos/ash/components/dbus/spaced:spaced_proto",
"//chromeos/ash/components/dbus/userdataauth",
"//chromeos/ash/components/disks:test_support",
"//chromeos/ash/components/drivefs/mojom",
"//chromeos/ash/components/drivefs/mojom:pinning_manager_types",
"//chromeos/components/mojo_bootstrap",
"//chromeos/dbus/power",
"//chromeos/dbus/power:power_manager_proto",
"//components/account_id",
"//components/drive",
"//components/invalidation/impl:test_support",
"//components/signin/public/identity_manager",
"//components/signin/public/identity_manager:test_support",
"//mojo/public/cpp/bindings",
"//net",
"//net:test_support",
"//services/network:test_support",
"//services/network/public/cpp:cpp",
"//testing/gmock",
"//testing/gtest",
]
}
|