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

Side by Side Diff: services/service_manager/public/cpp/service_test.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
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 #ifndef SERVICES_SERVICE_MANAGER_PUBLIC_CPP_SERVICE_TEST_H_ 5 #ifndef SERVICES_SERVICE_MANAGER_PUBLIC_CPP_SERVICE_TEST_H_
6 #define SERVICES_SERVICE_MANAGER_PUBLIC_CPP_SERVICE_TEST_H_ 6 #define SERVICES_SERVICE_MANAGER_PUBLIC_CPP_SERVICE_TEST_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "services/service_manager/public/cpp/connector.h" 11 #include "services/service_manager/public/cpp/connector.h"
12 #include "services/service_manager/public/cpp/service.h" 12 #include "services/service_manager/public/cpp/service.h"
13 #include "services/service_manager/public/cpp/service_context.h" 13 #include "services/service_manager/public/cpp/service_context.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 15
16 namespace base { 16 namespace base {
17 class MessageLoop; 17 class MessageLoop;
18 } 18 }
19 19
20 namespace shell { 20 namespace service_manager {
21 21
22 class BackgroundShell; 22 class BackgroundShell;
23 23
24 namespace test { 24 namespace test {
25 25
26 class ServiceTest; 26 class ServiceTest;
27 27
28 // A default implementation of Service for use in ServiceTests. Tests wishing 28 // A default implementation of Service for use in ServiceTests. Tests wishing
29 // to customize this should subclass this class instead of Service, 29 // to customize this should subclass this class instead of Service,
30 // otherwise they will have to call ServiceTest::OnStartCalled() to forward 30 // otherwise they will have to call ServiceTest::OnStartCalled() to forward
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 88
89 std::unique_ptr<base::MessageLoop> message_loop_; 89 std::unique_ptr<base::MessageLoop> message_loop_;
90 std::unique_ptr<BackgroundShell> background_shell_; 90 std::unique_ptr<BackgroundShell> background_shell_;
91 std::unique_ptr<ServiceContext> service_context_; 91 std::unique_ptr<ServiceContext> service_context_;
92 92
93 // See constructor. 93 // See constructor.
94 std::string test_name_; 94 std::string test_name_;
95 95
96 Connector* connector_ = nullptr; 96 Connector* connector_ = nullptr;
97 std::string initialize_name_; 97 std::string initialize_name_;
98 std::string initialize_userid_ = shell::mojom::kInheritUserID; 98 std::string initialize_userid_ = service_manager::mojom::kInheritUserID;
99 uint32_t initialize_instance_id_ = shell::mojom::kInvalidInstanceID; 99 uint32_t initialize_instance_id_ = service_manager::mojom::kInvalidInstanceID;
100 100
101 base::Closure initialize_called_; 101 base::Closure initialize_called_;
102 102
103 DISALLOW_COPY_AND_ASSIGN(ServiceTest); 103 DISALLOW_COPY_AND_ASSIGN(ServiceTest);
104 }; 104 };
105 105
106 } // namespace test 106 } // namespace test
107 } // namespace shell 107 } // namespace service_manager
108 108
109 #endif // SERVICES_SERVICE_MANAGER_PUBLIC_CPP_SERVICE_TEST_H_ 109 #endif // SERVICES_SERVICE_MANAGER_PUBLIC_CPP_SERVICE_TEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698