[email protected] | 44a5a36 | 2014-05-30 20:01:51 | [diff] [blame] | 1 | # 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 | |
| 5 | component("common") { |
pilgrim | f55d19fc | 2014-09-04 00:05:24 | [diff] [blame] | 6 | output_name = "storage_common" |
[email protected] | 44a5a36 | 2014-05-30 20:01:51 | [diff] [blame] | 7 | sources = [ |
Marijn Kruisselbrink | 058ca54 | 2017-08-01 22:55:21 | [diff] [blame^] | 8 | "blob_storage/blob_handle.cc", |
| 9 | "blob_storage/blob_handle.h", |
dmurph | 0140342 | 2015-10-31 01:04:52 | [diff] [blame] | 10 | "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", |
dmurph | 0b0e36d | 2016-10-21 21:51:20 | [diff] [blame] | 14 | "blob_storage/blob_storage_constants.cc", |
dmurph | 0140342 | 2015-10-31 01:04:52 | [diff] [blame] | 15 | "blob_storage/blob_storage_constants.h", |
[email protected] | 44a5a36 | 2014-05-30 20:01:51 | [diff] [blame] | 16 | "data_element.cc", |
| 17 | "data_element.h", |
[email protected] | 44a5a36 | 2014-05-30 20:01:51 | [diff] [blame] | 18 | "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", |
scottmg | 7c7296f4 | 2015-02-28 02:23:09 | [diff] [blame] | 33 | "storage_common_export.h", |
michaeln | 93ccede | 2017-05-23 00:01:22 | [diff] [blame] | 34 | "storage_histograms.cc", |
| 35 | "storage_histograms.h", |
[email protected] | 44a5a36 | 2014-05-30 20:01:51 | [diff] [blame] | 36 | ] |
| 37 | |
brettw | d1c719a | 2015-02-19 23:17:04 | [diff] [blame] | 38 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
rsesek | 99679aa | 2016-06-28 21:24:17 | [diff] [blame] | 39 | configs += [ |
| 40 | "//build/config/compiler:no_size_t_to_int_warning", |
| 41 | "//build/config/compiler:wexit_time_destructors", |
| 42 | ] |
brettw | d1c719a | 2015-02-19 23:17:04 | [diff] [blame] | 43 | |
pilgrim | 0e4d1cb3 | 2014-08-30 01:16:11 | [diff] [blame] | 44 | defines = [ "STORAGE_COMMON_IMPLEMENTATION" ] |
[email protected] | 44a5a36 | 2014-05-30 20:01:51 | [diff] [blame] | 45 | |
Marijn Kruisselbrink | 058ca54 | 2017-08-01 22:55:21 | [diff] [blame^] | 46 | public_deps = [ |
| 47 | "//storage/public/interfaces", |
| 48 | ] |
[email protected] | 44a5a36 | 2014-05-30 20:01:51 | [diff] [blame] | 49 | deps = [ |
[email protected] | 44a5a36 | 2014-05-30 20:01:51 | [diff] [blame] | 50 | "//base", |
| 51 | "//base/third_party/dynamic_annotations", |
| 52 | "//net", |
agrieve | deb0276 | 2015-07-08 20:51:03 | [diff] [blame] | 53 | "//third_party/WebKit/public:blink_headers", |
agrieve | d7a71c88 | 2015-11-20 19:53:28 | [diff] [blame] | 54 | "//url", |
[email protected] | 44a5a36 | 2014-05-30 20:01:51 | [diff] [blame] | 55 | ] |
| 56 | } |
pwnall | 9f1622a | 2017-04-21 09:39:02 | [diff] [blame] | 57 | |
| 58 | source_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 Kruisselbrink | 159b6ee | 2017-06-27 22:04:56 | [diff] [blame] | 65 | "run_all_unittests.cc", |
pwnall | 9f1622a | 2017-04-21 09:39:02 | [diff] [blame] | 66 | ] |
| 67 | |
| 68 | deps = [ |
| 69 | ":common", |
pwnall | 9f1622a | 2017-04-21 09:39:02 | [diff] [blame] | 70 | "//base/test:test_support", |
Marijn Kruisselbrink | 159b6ee | 2017-06-27 22:04:56 | [diff] [blame] | 71 | "//mojo/edk/system", |
pwnall | 9f1622a | 2017-04-21 09:39:02 | [diff] [blame] | 72 | "//testing/gtest", |
| 73 | "//url", |
| 74 | ] |
| 75 | } |