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

Side by Side Diff: components/leveldb/leveldb_service_unittest.cc

Issue 2390013002: Rename mojo: to service: (Closed)
Patch Set: . Created 4 years, 2 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 unified diff | Download patch
« no previous file with comments | « components/font_service/public/cpp/font_loader.cc ('k') | components/leveldb/manifest.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "base/run_loop.h" 7 #include "base/run_loop.h"
8 #include "components/filesystem/public/interfaces/directory.mojom.h" 8 #include "components/filesystem/public/interfaces/directory.mojom.h"
9 #include "components/filesystem/public/interfaces/file_system.mojom.h" 9 #include "components/filesystem/public/interfaces/file_system.mojom.h"
10 #include "components/filesystem/public/interfaces/types.mojom.h" 10 #include "components/filesystem/public/interfaces/types.mojom.h"
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 98
99 class LevelDBServiceTest : public shell::test::ServiceTest { 99 class LevelDBServiceTest : public shell::test::ServiceTest {
100 public: 100 public:
101 LevelDBServiceTest() : ServiceTest("exe:leveldb_service_unittests") {} 101 LevelDBServiceTest() : ServiceTest("exe:leveldb_service_unittests") {}
102 ~LevelDBServiceTest() override {} 102 ~LevelDBServiceTest() override {}
103 103
104 protected: 104 protected:
105 // Overridden from mojo::test::ApplicationTestBase: 105 // Overridden from mojo::test::ApplicationTestBase:
106 void SetUp() override { 106 void SetUp() override {
107 ServiceTest::SetUp(); 107 ServiceTest::SetUp();
108 connector()->ConnectToInterface("mojo:filesystem", &files_); 108 connector()->ConnectToInterface("service:filesystem", &files_);
109 connector()->ConnectToInterface("mojo:leveldb", &leveldb_); 109 connector()->ConnectToInterface("service:leveldb", &leveldb_);
110 } 110 }
111 111
112 void TearDown() override { 112 void TearDown() override {
113 leveldb_.reset(); 113 leveldb_.reset();
114 files_.reset(); 114 files_.reset();
115 ServiceTest::TearDown(); 115 ServiceTest::TearDown();
116 } 116 }
117 117
118 // Note: This has an out parameter rather than returning the |DirectoryPtr|, 118 // Note: This has an out parameter rather than returning the |DirectoryPtr|,
119 // since |ASSERT_...()| doesn't work with return values. 119 // since |ASSERT_...()| doesn't work with return values.
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 EXPECT_EQ(mojom::DatabaseError::OK, error); 489 EXPECT_EQ(mojom::DatabaseError::OK, error);
490 error = mojom::DatabaseError::INVALID_ARGUMENT; 490 error = mojom::DatabaseError::INVALID_ARGUMENT;
491 key_values.clear(); 491 key_values.clear();
492 DatabaseSyncGetPrefixed(database.get(), prefix, &error, &key_values); 492 DatabaseSyncGetPrefixed(database.get(), prefix, &error, &key_values);
493 EXPECT_EQ(mojom::DatabaseError::OK, error); 493 EXPECT_EQ(mojom::DatabaseError::OK, error);
494 EXPECT_TRUE(key_values.empty()); 494 EXPECT_TRUE(key_values.empty());
495 } 495 }
496 496
497 } // namespace 497 } // namespace
498 } // namespace leveldb 498 } // namespace leveldb
OLDNEW
« no previous file with comments | « components/font_service/public/cpp/font_loader.cc ('k') | components/leveldb/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698