blob: 00a04b873561b97c09ea9d43b7f7ada59e2ece0b [file] [log] [blame]
# Copyright 2018 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.
assert(is_chromeos, "Non-ChromeOS builds cannot depend on //chromeos")
component("drivefs") {
sources = [
"drivefs_auth.cc",
"drivefs_auth.h",
"drivefs_bootstrap.cc",
"drivefs_bootstrap.h",
"drivefs_host.cc",
"drivefs_host.h",
"drivefs_host_observer.h",
"drivefs_search.cc",
"drivefs_search.h",
"drivefs_session.cc",
"drivefs_session.h",
"fake_drivefs_launcher_client.cc",
"fake_drivefs_launcher_client.h",
"pending_connection_manager.cc",
"pending_connection_manager.h",
]
deps = [
"//base",
"//chromeos/components/drivefs/mojom",
"//chromeos/dbus",
"//chromeos/disks",
"//components/account_id",
"//components/drive",
"//dbus",
"//google_apis",
"//mojo/public/cpp/bindings",
"//mojo/public/cpp/platform",
"//net",
"//services/identity/public/mojom",
"//services/network/public/cpp:cpp",
"//services/service_manager/public/cpp",
]
defines = [ "IS_DRIVEFS_IMPL" ]
}
source_set("test_support") {
testonly = true
sources = [
"fake_drivefs.cc",
"fake_drivefs.h",
]
deps = [
":drivefs",
"//base",
"//chromeos/components/drivefs/mojom",
"//chromeos/dbus:test_support",
"//net",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"drivefs_auth_unittest.cc",
"drivefs_bootstrap_unittest.cc",
"drivefs_host_unittest.cc",
"drivefs_search_unittest.cc",
"drivefs_session_unittest.cc",
"pending_connection_manager_unittest.cc",
]
deps = [
":drivefs",
":test_support",
"//base",
"//base/test:test_support",
"//chromeos/components/drivefs/mojom",
"//chromeos/disks:test_support",
"//components/drive",
"//components/invalidation/impl:test_support",
"//mojo/public/cpp/bindings",
"//net",
"//net:test_support",
"//services/identity/public/mojom",
"//services/network:test_support",
"//services/network/public/cpp:cpp",
"//services/service_manager/public/cpp",
"//services/service_manager/public/cpp/test:test_support",
"//testing/gmock",
"//testing/gtest",
]
}