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

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

Issue 2419723002: Move services/shell to services/service_manager (Closed)
Patch Set: rebase 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/leveldb/leveldb_app.cc ('k') | components/leveldb/main.cc » ('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"
11 #include "components/leveldb/public/cpp/util.h" 11 #include "components/leveldb/public/cpp/util.h"
12 #include "components/leveldb/public/interfaces/leveldb.mojom.h" 12 #include "components/leveldb/public/interfaces/leveldb.mojom.h"
13 #include "mojo/public/cpp/bindings/binding_set.h" 13 #include "mojo/public/cpp/bindings/binding_set.h"
14 #include "services/shell/public/cpp/service_context.h" 14 #include "services/service_manager/public/cpp/service_context.h"
15 #include "services/shell/public/cpp/service_test.h" 15 #include "services/service_manager/public/cpp/service_test.h"
16 16
17 using filesystem::mojom::FileError; 17 using filesystem::mojom::FileError;
18 18
19 namespace leveldb { 19 namespace leveldb {
20 namespace { 20 namespace {
21 21
22 template <typename... Args> void IgnoreAllArgs(Args&&...) {} 22 template <typename... Args> void IgnoreAllArgs(Args&&...) {}
23 23
24 template <typename... Args> 24 template <typename... Args>
25 void DoCaptures(typename std::decay<Args>::type*... out_args, 25 void DoCaptures(typename std::decay<Args>::type*... out_args,
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 EXPECT_EQ(mojom::DatabaseError::OK, error); 497 EXPECT_EQ(mojom::DatabaseError::OK, error);
498 error = mojom::DatabaseError::INVALID_ARGUMENT; 498 error = mojom::DatabaseError::INVALID_ARGUMENT;
499 key_values.clear(); 499 key_values.clear();
500 DatabaseSyncGetPrefixed(database.get(), prefix, &error, &key_values); 500 DatabaseSyncGetPrefixed(database.get(), prefix, &error, &key_values);
501 EXPECT_EQ(mojom::DatabaseError::OK, error); 501 EXPECT_EQ(mojom::DatabaseError::OK, error);
502 EXPECT_TRUE(key_values.empty()); 502 EXPECT_TRUE(key_values.empty());
503 } 503 }
504 504
505 } // namespace 505 } // namespace
506 } // namespace leveldb 506 } // namespace leveldb
OLDNEW
« no previous file with comments | « components/leveldb/leveldb_app.cc ('k') | components/leveldb/main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698