blob: a233cbeb5a7184114525476122013790c96a0dcf [file] [log] [blame]
[email protected]44a5a362014-05-30 20:01:511# Copyright 2014 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5component("common") {
pilgrimf55d19fc2014-09-04 00:05:246 output_name = "storage_common"
[email protected]44a5a362014-05-30 20:01:517 sources = [
Marijn Kruisselbrink058ca542017-08-01 22:55:218 "blob_storage/blob_handle.cc",
9 "blob_storage/blob_handle.h",
dmurph01403422015-10-31 01:04:5210 "blob_storage/blob_item_bytes_request.cc",
11 "blob_storage/blob_item_bytes_request.h",
12 "blob_storage/blob_item_bytes_response.cc",
13 "blob_storage/blob_item_bytes_response.h",
dmurph0b0e36d2016-10-21 21:51:2014 "blob_storage/blob_storage_constants.cc",
dmurph01403422015-10-31 01:04:5215 "blob_storage/blob_storage_constants.h",
[email protected]44a5a362014-05-30 20:01:5116 "data_element.cc",
17 "data_element.h",
[email protected]44a5a362014-05-30 20:01:5118 "database/database_connections.cc",
19 "database/database_connections.h",
20 "database/database_identifier.cc",
21 "database/database_identifier.h",
22 "fileapi/directory_entry.cc",
23 "fileapi/directory_entry.h",
24 "fileapi/file_system_info.cc",
25 "fileapi/file_system_info.h",
26 "fileapi/file_system_mount_option.h",
27 "fileapi/file_system_types.h",
28 "fileapi/file_system_util.cc",
29 "fileapi/file_system_util.h",
30 "quota/quota_status_code.cc",
31 "quota/quota_status_code.h",
32 "quota/quota_types.h",
scottmg7c7296f42015-02-28 02:23:0933 "storage_common_export.h",
michaeln93ccede2017-05-23 00:01:2234 "storage_histograms.cc",
35 "storage_histograms.h",
[email protected]44a5a362014-05-30 20:01:5136 ]
37
brettwd1c719a2015-02-19 23:17:0438 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
rsesek99679aa2016-06-28 21:24:1739 configs += [
40 "//build/config/compiler:no_size_t_to_int_warning",
41 "//build/config/compiler:wexit_time_destructors",
42 ]
brettwd1c719a2015-02-19 23:17:0443
pilgrim0e4d1cb32014-08-30 01:16:1144 defines = [ "STORAGE_COMMON_IMPLEMENTATION" ]
[email protected]44a5a362014-05-30 20:01:5145
Marijn Kruisselbrink058ca542017-08-01 22:55:2146 public_deps = [
47 "//storage/public/interfaces",
48 ]
[email protected]44a5a362014-05-30 20:01:5149 deps = [
[email protected]44a5a362014-05-30 20:01:5150 "//base",
51 "//base/third_party/dynamic_annotations",
52 "//net",
agrievedeb02762015-07-08 20:51:0353 "//third_party/WebKit/public:blink_headers",
agrieved7a71c882015-11-20 19:53:2854 "//url",
[email protected]44a5a362014-05-30 20:01:5155 ]
56}
pwnall9f1622a2017-04-21 09:39:0257
58source_set("unittests") {
59 testonly = true
60
61 sources = [
62 "database/database_connections_unittest.cc",
63 "database/database_identifier_unittest.cc",
64 "fileapi/file_system_util_unittest.cc",
Marijn Kruisselbrink159b6ee2017-06-27 22:04:5665 "run_all_unittests.cc",
pwnall9f1622a2017-04-21 09:39:0266 ]
67
68 deps = [
69 ":common",
pwnall9f1622a2017-04-21 09:39:0270 "//base/test:test_support",
Marijn Kruisselbrink159b6ee2017-06-27 22:04:5671 "//mojo/edk/system",
pwnall9f1622a2017-04-21 09:39:0272 "//testing/gtest",
73 "//url",
74 ]
75}