blob: 93fd20637ed71ba22a0139f1bdf08ab0af0811b2 [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
Sasha Bermeister9a3f9da2017-11-29 03:30:285import("//mojo/public/tools/bindings/mojom.gni")
6
[email protected]44a5a362014-05-30 20:01:517component("common") {
pilgrimf55d19fc2014-09-04 00:05:248 output_name = "storage_common"
[email protected]44a5a362014-05-30 20:01:519 sources = [
Marijn Kruisselbrink058ca542017-08-01 22:55:2110 "blob_storage/blob_handle.cc",
11 "blob_storage/blob_handle.h",
dmurph01403422015-10-31 01:04:5212 "blob_storage/blob_item_bytes_request.cc",
13 "blob_storage/blob_item_bytes_request.h",
14 "blob_storage/blob_item_bytes_response.cc",
15 "blob_storage/blob_item_bytes_response.h",
dmurph0b0e36d2016-10-21 21:51:2016 "blob_storage/blob_storage_constants.cc",
dmurph01403422015-10-31 01:04:5217 "blob_storage/blob_storage_constants.h",
[email protected]44a5a362014-05-30 20:01:5118 "data_element.cc",
19 "data_element.h",
[email protected]44a5a362014-05-30 20:01:5120 "database/database_connections.cc",
21 "database/database_connections.h",
22 "database/database_identifier.cc",
23 "database/database_identifier.h",
24 "fileapi/directory_entry.cc",
25 "fileapi/directory_entry.h",
26 "fileapi/file_system_info.cc",
27 "fileapi/file_system_info.h",
28 "fileapi/file_system_mount_option.h",
29 "fileapi/file_system_types.h",
30 "fileapi/file_system_util.cc",
31 "fileapi/file_system_util.h",
32 "quota/quota_status_code.cc",
33 "quota/quota_status_code.h",
34 "quota/quota_types.h",
scottmg7c7296f42015-02-28 02:23:0935 "storage_common_export.h",
michaeln93ccede2017-05-23 00:01:2236 "storage_histograms.cc",
37 "storage_histograms.h",
[email protected]44a5a362014-05-30 20:01:5138 ]
39
brettwd1c719a2015-02-19 23:17:0440 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
rsesek99679aa2016-06-28 21:24:1741 configs += [
42 "//build/config/compiler:no_size_t_to_int_warning",
43 "//build/config/compiler:wexit_time_destructors",
44 ]
brettwd1c719a2015-02-19 23:17:0445
pilgrim0e4d1cb32014-08-30 01:16:1146 defines = [ "STORAGE_COMMON_IMPLEMENTATION" ]
[email protected]44a5a362014-05-30 20:01:5147
Marijn Kruisselbrink058ca542017-08-01 22:55:2148 public_deps = [
Marijn Kruisselbrink97fabdbe2017-10-20 07:09:2449 "//third_party/WebKit/public:blink_headers",
Marijn Kruisselbrink058ca542017-08-01 22:55:2150 ]
Marijn Kruisselbrink97fabdbe2017-10-20 07:09:2451
[email protected]44a5a362014-05-30 20:01:5152 deps = [
[email protected]44a5a362014-05-30 20:01:5153 "//base",
54 "//base/third_party/dynamic_annotations",
55 "//net",
agrieved7a71c882015-11-20 19:53:2856 "//url",
[email protected]44a5a362014-05-30 20:01:5157 ]
58}
pwnall9f1622a2017-04-21 09:39:0259
Sasha Bermeister9a3f9da2017-11-29 03:30:2860mojom("mojo_bindings") {
61 sources = [
62 "quota/quota_types.mojom",
63 ]
64
65 public_deps = [
66 "//url/mojo:url_mojom_gurl",
67 ]
68}
69
pwnall9f1622a2017-04-21 09:39:0270source_set("unittests") {
71 testonly = true
72
73 sources = [
74 "database/database_connections_unittest.cc",
75 "database/database_identifier_unittest.cc",
76 "fileapi/file_system_util_unittest.cc",
Marijn Kruisselbrink159b6ee2017-06-27 22:04:5677 "run_all_unittests.cc",
pwnall9f1622a2017-04-21 09:39:0278 ]
79
80 deps = [
81 ":common",
pwnall9f1622a2017-04-21 09:39:0282 "//base/test:test_support",
Marijn Kruisselbrink159b6ee2017-06-27 22:04:5683 "//mojo/edk/system",
pwnall9f1622a2017-04-21 09:39:0284 "//testing/gtest",
85 "//url",
86 ]
87}