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

Side by Side Diff: services/ui/ws/window_server_service_test_base.h

Issue 2850743004: Replace ServiceInfo with BindSourceInfo. (Closed)
Patch Set: . Created 3 years, 7 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 | « services/ui/test_wm/test_wm.cc ('k') | services/ui/ws/window_server_service_test_base.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 #ifndef SERVICES_UI_WS_WINDOW_SERVER_SERVICE_TEST_BASE_H_ 5 #ifndef SERVICES_UI_WS_WINDOW_SERVER_SERVICE_TEST_BASE_H_
6 #define SERVICES_UI_WS_WINDOW_SERVER_SERVICE_TEST_BASE_H_ 6 #define SERVICES_UI_WS_WINDOW_SERVER_SERVICE_TEST_BASE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "services/service_manager/public/cpp/service_test.h" 9 #include "services/service_manager/public/cpp/service_test.h"
10 10
11 namespace ui { 11 namespace ui {
12 12
13 // Base class for all window manager ServiceTests to perform some common setup. 13 // Base class for all window manager ServiceTests to perform some common setup.
14 class WindowServerServiceTestBase : public service_manager::test::ServiceTest { 14 class WindowServerServiceTestBase : public service_manager::test::ServiceTest {
15 public: 15 public:
16 WindowServerServiceTestBase(); 16 WindowServerServiceTestBase();
17 ~WindowServerServiceTestBase() override; 17 ~WindowServerServiceTestBase() override;
18 18
19 virtual void OnBindInterface( 19 virtual void OnBindInterface(
20 const service_manager::ServiceInfo& source_info, 20 const service_manager::BindSourceInfo& source_info,
21 const std::string& interface_name, 21 const std::string& interface_name,
22 mojo::ScopedMessagePipeHandle interface_pipe) = 0; 22 mojo::ScopedMessagePipeHandle interface_pipe) = 0;
23 23
24 private: 24 private:
25 // service_manager::test::ServiceTest: 25 // service_manager::test::ServiceTest:
26 std::unique_ptr<service_manager::Service> CreateService() override; 26 std::unique_ptr<service_manager::Service> CreateService() override;
27 27
28 DISALLOW_COPY_AND_ASSIGN(WindowServerServiceTestBase); 28 DISALLOW_COPY_AND_ASSIGN(WindowServerServiceTestBase);
29 }; 29 };
30 30
31 } // namespace ui 31 } // namespace ui
32 32
33 #endif // SERVICES_UI_WS_WINDOW_SERVER_SERVICE_TEST_BASE_H_ 33 #endif // SERVICES_UI_WS_WINDOW_SERVER_SERVICE_TEST_BASE_H_
OLDNEW
« no previous file with comments | « services/ui/test_wm/test_wm.cc ('k') | services/ui/ws/window_server_service_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698