Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(602)

Unified Diff: storage/browser/BUILD.gn

Issue 2368913003: Populate storage_unittests target. (Closed)
Patch Set: Removed unnecessary include from storage/browser/blob/blob_storage_context_unittest.cc. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/test/fileapi_test_file_set.cc ('k') | storage/browser/blob/blob_async_builder_host_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: storage/browser/BUILD.gn
diff --git a/storage/browser/BUILD.gn b/storage/browser/BUILD.gn
index 4a712dc73913b2b5a92413ebf20461e3bf6fe9ff..d6299c0f09387838fb63242ad1214f56165b4ac1 100644
--- a/storage/browser/BUILD.gn
+++ b/storage/browser/BUILD.gn
@@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-# GYP version: storage/storage_browser.gyp:storage
+import("//testing/test.gni")
component("browser") {
output_name = "storage_browser"
sources = [
@@ -216,3 +216,111 @@ executable("dump_file_system") {
"//storage/common",
]
}
+
+static_library("test_support") {
+ testonly = true
+
+ sources = [
+ "test/async_file_test_helper.cc",
+ "test/async_file_test_helper.h",
+ "test/mock_blob_url_request_context.cc",
+ "test/mock_blob_url_request_context.h",
+ "test/mock_file_change_observer.cc",
+ "test/mock_file_change_observer.h",
+ "test/mock_file_update_observer.cc",
+ "test/mock_file_update_observer.h",
+ "test/mock_quota_manager.cc",
+ "test/mock_quota_manager.h",
+ "test/mock_quota_manager_proxy.cc",
+ "test/mock_quota_manager_proxy.h",
+ "test/mock_special_storage_policy.cc",
+ "test/mock_special_storage_policy.h",
+ "test/mock_storage_client.cc",
+ "test/mock_storage_client.h",
+ "test/mock_url_request_delegate.cc",
+ "test/mock_url_request_delegate.h",
+ "test/sandbox_database_test_helper.cc",
+ "test/sandbox_database_test_helper.h",
+ "test/sandbox_file_system_test_helper.cc",
+ "test/sandbox_file_system_test_helper.h",
+ "test/test_file_system_backend.cc",
+ "test/test_file_system_backend.h",
+ "test/test_file_system_context.cc",
+ "test/test_file_system_context.h",
+ "test/test_file_system_options.cc",
+ "test/test_file_system_options.h",
+ ]
+
+ deps = [
+ "//base",
+ "//net",
+ "//storage/browser",
+ "//testing/gtest",
+ "//third_party/leveldatabase",
+ ]
+}
+
+test("storage_unittests") {
+ sources = [
+ "blob/blob_async_builder_host_unittest.cc",
+ "blob/blob_async_transport_request_builder_unittest.cc",
+ "blob/blob_reader_unittest.cc",
+ "blob/blob_storage_context_unittest.cc",
+ "blob/blob_storage_registry_unittest.cc",
+ "blob/blob_url_request_job_unittest.cc",
+ "fileapi/copy_or_move_file_validator_unittest.cc",
+ "fileapi/copy_or_move_operation_delegate_unittest.cc",
+ "fileapi/dragged_file_util_unittest.cc",
+ "fileapi/external_mount_points_unittest.cc",
+ "fileapi/file_system_context_unittest.cc",
+ "fileapi/file_system_dir_url_request_job_unittest.cc",
+ "fileapi/file_system_file_stream_reader_unittest.cc",
+ "fileapi/file_system_operation_impl_unittest.cc",
+ "fileapi/file_system_operation_impl_write_unittest.cc",
+ "fileapi/file_system_operation_runner_unittest.cc",
+ "fileapi/file_system_quota_client_unittest.cc",
+ "fileapi/file_system_url_request_job_unittest.cc",
+ "fileapi/file_system_url_unittest.cc",
+ "fileapi/file_system_usage_cache_unittest.cc",
+ "fileapi/file_writer_delegate_unittest.cc",
+ "fileapi/fileapi_test_file_set.cc",
+ "fileapi/fileapi_test_file_set.h",
+ "fileapi/isolated_context_unittest.cc",
+ "fileapi/local_file_stream_reader_unittest.cc",
+ "fileapi/local_file_stream_writer_unittest.cc",
+ "fileapi/local_file_util_unittest.cc",
+ "fileapi/native_file_util_unittest.cc",
+ "fileapi/obfuscated_file_util_unittest.cc",
+ "fileapi/plugin_private_file_system_backend_unittest.cc",
+ "fileapi/quota/quota_backend_impl_unittest.cc",
+ "fileapi/quota/quota_reservation_manager_unittest.cc",
+ "fileapi/recursive_operation_delegate_unittest.cc",
+ "fileapi/sandbox_directory_database_unittest.cc",
+ "fileapi/sandbox_file_system_backend_delegate_unittest.cc",
+ "fileapi/sandbox_file_system_backend_unittest.cc",
+ "fileapi/sandbox_isolated_origin_database_unittest.cc",
+ "fileapi/sandbox_origin_database_unittest.cc",
+ "fileapi/sandbox_prioritized_origin_database_unittest.cc",
+ "fileapi/timed_task_helper_unittest.cc",
+ "fileapi/transient_file_util_unittest.cc",
+ "quota/quota_database_unittest.cc",
+ "quota/quota_manager_unittest.cc",
+ "quota/storage_monitor_unittest.cc",
+ "quota/usage_tracker_unittest.cc",
+ "test/mock_quota_manager_unittest.cc",
+ ]
+
+ deps = [
+ ":browser",
+ ":test_support",
+ "//base",
+ "//base/test:run_all_unittests",
+ "//base/test:test_support",
+ "//content/test:test_support",
+ "//net:test_support",
+ "//sql:test_support",
+ "//testing/gmock",
+ "//testing/gtest",
+ "//third_party/leveldatabase",
+ ]
+}
« no previous file with comments | « content/test/fileapi_test_file_set.cc ('k') | storage/browser/blob/blob_async_builder_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698