blob: 44d68d9226b480b12ef3f2a9d5d31df590ecc311 [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",
dmurph0b0e36d2016-10-21 21:51:2012 "blob_storage/blob_storage_constants.cc",
dmurph01403422015-10-31 01:04:5213 "blob_storage/blob_storage_constants.h",
[email protected]44a5a362014-05-30 20:01:5114 "database/database_connections.cc",
15 "database/database_connections.h",
16 "database/database_identifier.cc",
17 "database/database_identifier.h",
[email protected]44a5a362014-05-30 20:01:5118 "fileapi/file_system_info.cc",
19 "fileapi/file_system_info.h",
20 "fileapi/file_system_mount_option.h",
21 "fileapi/file_system_types.h",
22 "fileapi/file_system_util.cc",
23 "fileapi/file_system_util.h",
Sasha Bermeisterf4030162017-12-19 06:53:4624 "quota/quota_limit_type.h",
scottmg7c7296f42015-02-28 02:23:0925 "storage_common_export.h",
michaeln93ccede2017-05-23 00:01:2226 "storage_histograms.cc",
27 "storage_histograms.h",
[email protected]44a5a362014-05-30 20:01:5128 ]
29
brettwd1c719a2015-02-19 23:17:0430 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
rsesek99679aa2016-06-28 21:24:1731 configs += [
32 "//build/config/compiler:no_size_t_to_int_warning",
33 "//build/config/compiler:wexit_time_destructors",
34 ]
brettwd1c719a2015-02-19 23:17:0435
pilgrim0e4d1cb32014-08-30 01:16:1136 defines = [ "STORAGE_COMMON_IMPLEMENTATION" ]
[email protected]44a5a362014-05-30 20:01:5137
Marijn Kruisselbrink058ca542017-08-01 22:55:2138 public_deps = [
Luciano Pacheco99533e82018-03-28 07:49:0739 "//components/services/filesystem/public/interfaces",
Ken Rockot54311e62018-02-10 19:01:5240 "//services/network/public/mojom",
Blink Reformata30d4232018-04-07 15:31:0641 "//third_party/blink/public:blink_headers",
Marijn Kruisselbrink058ca542017-08-01 22:55:2142 ]
Marijn Kruisselbrink97fabdbe2017-10-20 07:09:2443
[email protected]44a5a362014-05-30 20:01:5144 deps = [
[email protected]44a5a362014-05-30 20:01:5145 "//base",
46 "//base/third_party/dynamic_annotations",
47 "//net",
agrieved7a71c882015-11-20 19:53:2848 "//url",
[email protected]44a5a362014-05-30 20:01:5149 ]
50}
pwnall9f1622a2017-04-21 09:39:0251
52source_set("unittests") {
53 testonly = true
54
55 sources = [
56 "database/database_connections_unittest.cc",
57 "database/database_identifier_unittest.cc",
58 "fileapi/file_system_util_unittest.cc",
Marijn Kruisselbrink159b6ee2017-06-27 22:04:5659 "run_all_unittests.cc",
pwnall9f1622a2017-04-21 09:39:0260 ]
61
62 deps = [
63 ":common",
pwnall9f1622a2017-04-21 09:39:0264 "//base/test:test_support",
Ken Rockotec287c82018-03-15 23:05:4965 "//mojo/edk",
pwnall9f1622a2017-04-21 09:39:0266 "//testing/gtest",
67 "//url",
68 ]
69}