123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- # 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.
- import("//build/config/chromeos/ui_mode.gni")
- import("//chromeos/dbus/config/use_real_dbus_clients.gni")
- assert(is_chromeos_ash, "Non-ChromeOS builds cannot depend on //ash")
- 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_http_client.cc",
- "drivefs_http_client.h",
- "drivefs_search.cc",
- "drivefs_search.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/components/disks",
- "//ash/components/drivefs/mojom",
- "//ash/constants",
- "//base",
- "//chromeos/ash/components/dbus",
- "//chromeos/ash/components/dbus/cros_disks",
- "//chromeos/components/mojo_bootstrap",
- "//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_DRIVEFS_IMPL" ]
- }
- source_set("test_support") {
- testonly = true
- sources = [
- "fake_drivefs.cc",
- "fake_drivefs.h",
- ]
- deps = [
- ":drivefs",
- "//ash/components/drivefs/mojom",
- "//base",
- "//chromeos/ash/components/dbus:test_support",
- "//chromeos/ash/components/dbus/cros_disks",
- "//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_search_unittest.cc",
- "drivefs_session_unittest.cc",
- ]
- deps = [
- ":drivefs",
- ":test_support",
- "//ash/components/disks:test_support",
- "//ash/components/drivefs/mojom",
- "//base",
- "//base/test:test_support",
- "//chromeos/components/mojo_bootstrap",
- "//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",
- ]
- }
|