summaryrefslogtreecommitdiff
path: root/chromium/google_apis/drive/BUILD.gn
blob: 9fb0768e6cc129c8239083e01d7fe8fcded02bbb (plain)
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
# 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/features.gni")
import("//testing/test.gni")

source_set("drive") {
  sources = [
    "auth_service.cc",
    "auth_service.h",
    "auth_service_interface.h",
    "auth_service_observer.h",
    "base_requests.cc",
    "base_requests.h",
    "drive_api_error_codes.cc",
    "drive_api_error_codes.h",
    "drive_api_parser.cc",
    "drive_api_parser.h",
    "drive_api_requests.cc",
    "drive_api_requests.h",
    "drive_api_url_generator.cc",
    "drive_api_url_generator.h",
    "drive_common_callbacks.h",
    "files_list_request_runner.cc",
    "files_list_request_runner.h",
    "request_sender.cc",
    "request_sender.h",
    "request_util.cc",
    "request_util.h",
    "task_util.cc",
    "task_util.h",
    "time_util.cc",
    "time_util.h",
  ]

  deps = [
    "//base",
    "//base/third_party/dynamic_annotations",
    "//components/signin/public/identity_manager",
    "//crypto",
    "//google_apis:google_apis",
    "//net",
    "//services/network/public/cpp",
  ]
}

source_set("test_support") {
  testonly = true

  sources = [
    "dummy_auth_service.cc",
    "dummy_auth_service.h",
    "test_util.cc",
    "test_util.h",
  ]

  public_deps = [
    ":drive",
    "//base",
    "//base/test:test_support",
    "//google_apis:test_support",
    "//net:test_support",
  ]
}

source_set("drive_unittests") {
  testonly = true

  sources = [
    "base_requests_server_unittest.cc",
    "base_requests_unittest.cc",
    "drive_api_parser_unittest.cc",
    "drive_api_requests_unittest.cc",
    "drive_api_url_generator_unittest.cc",
    "files_list_request_runner_unittest.cc",
    "request_sender_unittest.cc",
    "request_util_unittest.cc",
    "time_util_unittest.cc",
  ]

  deps = [
    ":drive",
    ":test_support",
    "//base",
    "//base/test:test_support",
    "//testing/gmock",
    "//testing/gtest",
  ]
}