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

Side by Side Diff: components/filesystem/files_test_base.h

Issue 2420253002: Rename shell namespace to service_manager (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/filesystem/file_system_impl.cc ('k') | components/filesystem/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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef COMPONENTS_FILESYSTEM_FILES_TEST_BASE_H_ 5 #ifndef COMPONENTS_FILESYSTEM_FILES_TEST_BASE_H_
6 #define COMPONENTS_FILESYSTEM_FILES_TEST_BASE_H_ 6 #define COMPONENTS_FILESYSTEM_FILES_TEST_BASE_H_
7 7
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 19 matching lines...) Expand all
30 template <typename T1, typename T2> 30 template <typename T1, typename T2>
31 base::Callback<void(T1, T2)> Capture(T1* t1, T2* t2) { 31 base::Callback<void(T1, T2)> Capture(T1* t1, T2* t2) {
32 return base::Bind(&DoCaptures<T1, T2>, t1, t2); 32 return base::Bind(&DoCaptures<T1, T2>, t1, t2);
33 } 33 }
34 34
35 template <typename T1, typename T2, typename T3> 35 template <typename T1, typename T2, typename T3>
36 base::Callback<void(T1, T2, T3)> Capture(T1* t1, T2* t2, T3* t3) { 36 base::Callback<void(T1, T2, T3)> Capture(T1* t1, T2* t2, T3* t3) {
37 return base::Bind(&DoCaptures<T1, T2, T3>, t1, t2, t3); 37 return base::Bind(&DoCaptures<T1, T2, T3>, t1, t2, t3);
38 } 38 }
39 39
40 class FilesTestBase : public shell::test::ServiceTest { 40 class FilesTestBase : public service_manager::test::ServiceTest {
41 public: 41 public:
42 FilesTestBase(); 42 FilesTestBase();
43 ~FilesTestBase() override; 43 ~FilesTestBase() override;
44 44
45 // Overridden from shell::test::ServiceTest: 45 // Overridden from service_manager::test::ServiceTest:
46 void SetUp() override; 46 void SetUp() override;
47 47
48 protected: 48 protected:
49 // Note: This has an out parameter rather than returning the |DirectoryPtr|, 49 // Note: This has an out parameter rather than returning the |DirectoryPtr|,
50 // since |ASSERT_...()| doesn't work with return values. 50 // since |ASSERT_...()| doesn't work with return values.
51 void GetTemporaryRoot(mojom::DirectoryPtr* directory); 51 void GetTemporaryRoot(mojom::DirectoryPtr* directory);
52 52
53 mojom::FileSystemPtr& files() { return files_; } 53 mojom::FileSystemPtr& files() { return files_; }
54 54
55 private: 55 private:
56 mojom::FileSystemPtr files_; 56 mojom::FileSystemPtr files_;
57 57
58 DISALLOW_COPY_AND_ASSIGN(FilesTestBase); 58 DISALLOW_COPY_AND_ASSIGN(FilesTestBase);
59 }; 59 };
60 60
61 } // namespace filesystem 61 } // namespace filesystem
62 62
63 #endif // COMPONENTS_FILESYSTEM_FILES_TEST_BASE_H_ 63 #endif // COMPONENTS_FILESYSTEM_FILES_TEST_BASE_H_
OLDNEW
« no previous file with comments | « components/filesystem/file_system_impl.cc ('k') | components/filesystem/main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698