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/macros.h" | 5 #include "base/macros.h" |
6 #include "components/filesystem/public/interfaces/directory.mojom.h" | 6 #include "components/filesystem/public/interfaces/directory.mojom.h" |
7 #include "components/filesystem/public/interfaces/file_system.mojom.h" | 7 #include "components/filesystem/public/interfaces/file_system.mojom.h" |
8 #include "components/filesystem/public/interfaces/types.mojom.h" | 8 #include "components/filesystem/public/interfaces/types.mojom.h" |
9 #include "components/leveldb/public/interfaces/leveldb.mojom.h" | 9 #include "components/leveldb/public/interfaces/leveldb.mojom.h" |
10 #include "mojo/common/common_type_converters.h" | 10 #include "mojo/common/common_type_converters.h" |
11 #include "mojo/public/cpp/bindings/binding_set.h" | 11 #include "mojo/public/cpp/bindings/binding_set.h" |
12 #include "mojo/shell/public/cpp/shell_connection.h" | |
13 #include "mojo/shell/public/cpp/shell_test.h" | |
14 #include "mojo/util/capture_util.h" | 12 #include "mojo/util/capture_util.h" |
| 13 #include "services/shell/public/cpp/shell_connection.h" |
| 14 #include "services/shell/public/cpp/shell_test.h" |
15 | 15 |
16 using filesystem::FileError; | 16 using filesystem::FileError; |
17 using mojo::Capture; | 17 using mojo::Capture; |
18 | 18 |
19 namespace leveldb { | 19 namespace leveldb { |
20 namespace { | 20 namespace { |
21 | 21 |
22 class LevelDBServiceTest : public mojo::test::ShellTest { | 22 class LevelDBServiceTest : public mojo::test::ShellTest { |
23 public: | 23 public: |
24 LevelDBServiceTest() : ShellTest("exe:leveldb_service_unittests") {} | 24 LevelDBServiceTest() : ShellTest("exe:leveldb_service_unittests") {} |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 database->Get(mojo::Array<uint8_t>::From(std::string("key")), | 334 database->Get(mojo::Array<uint8_t>::From(std::string("key")), |
335 Capture(&error, &value)); | 335 Capture(&error, &value)); |
336 ASSERT_TRUE(database.WaitForIncomingResponse()); | 336 ASSERT_TRUE(database.WaitForIncomingResponse()); |
337 EXPECT_EQ(DatabaseError::NOT_FOUND, error); | 337 EXPECT_EQ(DatabaseError::NOT_FOUND, error); |
338 EXPECT_EQ("", value.To<std::string>()); | 338 EXPECT_EQ("", value.To<std::string>()); |
339 } | 339 } |
340 | 340 |
341 | 341 |
342 } // namespace | 342 } // namespace |
343 } // namespace leveldb | 343 } // namespace leveldb |
OLD | NEW |