# Copyright 2016 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//third_party/blink/renderer/modules/modules.gni")
blink_modules_sources("indexeddb") {
sources = [
"global_indexed_db.cc",
"global_indexed_db.h",
"idb_any.cc",
"idb_any.h",
"idb_cursor.cc",
"idb_cursor.h",
"idb_cursor_with_value.cc",
"idb_cursor_with_value.h",
"idb_database.cc",
"idb_database.h",
"idb_database_error.h",
"idb_event_dispatcher.cc",
"idb_event_dispatcher.h",
"idb_factory.cc",
"idb_factory.h",
"idb_factory_client.cc",
"idb_factory_client.h",
"idb_index.cc",
"idb_index.h",
"idb_key.cc",
"idb_key.h",
"idb_key_path.cc",
"idb_key_path.h",
"idb_key_range.cc",
"idb_key_range.h",
"idb_metadata.cc",
"idb_metadata.h",
"idb_object_store.cc",
"idb_object_store.h",
"idb_open_db_request.cc",
"idb_open_db_request.h",
"idb_request.cc",
"idb_request.h",
"idb_request_loader.cc",
"idb_request_loader.h",
"idb_request_queue_item.cc",
"idb_request_queue_item.h",
"idb_transaction.cc",
"idb_transaction.h",
"idb_value.cc",
"idb_value.h",
"idb_value_wrapping.cc",
"idb_value_wrapping.h",
"idb_version_change_event.cc",
"idb_version_change_event.h",
"indexed_db.h",
"indexed_db_blink_mojom_traits.cc",
"indexed_db_blink_mojom_traits.h",
"inspector_indexed_db_agent.cc",
"inspector_indexed_db_agent.h",
]
public_deps = [
"//third_party/blink/public/mojom:mojom_modules_blink",
"//third_party/snappy",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"idb_cursor_unittest.cc",
"idb_key_path_test.cc",
"idb_request_test.cc",
"idb_test_helper.cc",
"idb_transaction_test.cc",
"idb_value_wrapping_test.cc",
"indexed_db_blink_mojom_traits_test.cc",
"mock_idb_database.cc",
"mock_idb_database.h",
"mock_idb_transaction.cc",
"mock_idb_transaction.h",
]
configs += [
"//third_party/blink/renderer:config",
"//third_party/blink/renderer:inside_blink",
"//third_party/blink/renderer/core:blink_core_pch",
]
deps = [
"//testing/gmock",
"//testing/gtest",
"//third_party/blink/public:test_headers",
"//third_party/blink/renderer/controller:blink_bindings_test_sources",
"//third_party/blink/renderer/core:testing",
"//third_party/blink/renderer/modules:modules",
"//third_party/blink/renderer/platform:test_support",
]
}