| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/bind.h" | 5 #include "base/bind.h" |
| 6 #include "base/macros.h" | 6 #include "base/macros.h" |
| 7 #include "components/filesystem/public/interfaces/directory.mojom.h" | 7 #include "components/filesystem/public/interfaces/directory.mojom.h" |
| 8 #include "components/filesystem/public/interfaces/file_system.mojom.h" | 8 #include "components/filesystem/public/interfaces/file_system.mojom.h" |
| 9 #include "components/filesystem/public/interfaces/types.mojom.h" | 9 #include "components/filesystem/public/interfaces/types.mojom.h" |
| 10 #include "components/leveldb/public/interfaces/leveldb.mojom.h" | 10 #include "components/leveldb/public/interfaces/leveldb.mojom.h" |
| 11 #include "mojo/common/common_type_converters.h" | 11 #include "mojo/common/common_type_converters.h" |
| 12 #include "mojo/public/cpp/bindings/binding_set.h" | 12 #include "mojo/public/cpp/bindings/binding_set.h" |
| 13 #include "services/shell/public/cpp/service_context.h" |
| 13 #include "services/shell/public/cpp/service_test.h" | 14 #include "services/shell/public/cpp/service_test.h" |
| 14 #include "services/shell/public/cpp/shell_connection.h" | |
| 15 | 15 |
| 16 using filesystem::mojom::FileError; | 16 using filesystem::mojom::FileError; |
| 17 | 17 |
| 18 namespace leveldb { | 18 namespace leveldb { |
| 19 namespace { | 19 namespace { |
| 20 | 20 |
| 21 template <typename... Args> void IgnoreAllArgs(Args&&...) {} | 21 template <typename... Args> void IgnoreAllArgs(Args&&...) {} |
| 22 | 22 |
| 23 template <typename... Args> | 23 template <typename... Args> |
| 24 void DoCaptures(Args*... out_args, Args... in_args) { | 24 void DoCaptures(Args*... out_args, Args... in_args) { |
| (...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 507 key_values.SetToEmpty(); | 507 key_values.SetToEmpty(); |
| 508 database->GetPrefixed(mojo::Array<uint8_t>::From(prefix), | 508 database->GetPrefixed(mojo::Array<uint8_t>::From(prefix), |
| 509 Capture(&error, &key_values)); | 509 Capture(&error, &key_values)); |
| 510 ASSERT_TRUE(database.WaitForIncomingResponse()); | 510 ASSERT_TRUE(database.WaitForIncomingResponse()); |
| 511 EXPECT_EQ(mojom::DatabaseError::OK, error); | 511 EXPECT_EQ(mojom::DatabaseError::OK, error); |
| 512 EXPECT_TRUE(key_values.empty()); | 512 EXPECT_TRUE(key_values.empty()); |
| 513 } | 513 } |
| 514 | 514 |
| 515 } // namespace | 515 } // namespace |
| 516 } // namespace leveldb | 516 } // namespace leveldb |
| OLD | NEW |