| OLD | NEW |
| 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 COMPONENTS_MUS_WS_TEST_UTILS_H_ | 5 #ifndef COMPONENTS_MUS_WS_TEST_UTILS_H_ |
| 6 #define COMPONENTS_MUS_WS_TEST_UTILS_H_ | 6 #define COMPONENTS_MUS_WS_TEST_UTILS_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "components/mus/public/interfaces/window_tree.mojom.h" | 10 #include "components/mus/public/interfaces/window_tree.mojom.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 namespace ws { | 21 namespace ws { |
| 22 namespace test { | 22 namespace test { |
| 23 | 23 |
| 24 // Collection of utilities useful in creating mus tests. | 24 // Collection of utilities useful in creating mus tests. |
| 25 | 25 |
| 26 class WindowManagerFactoryRegistryTestApi { | 26 class WindowManagerFactoryRegistryTestApi { |
| 27 public: | 27 public: |
| 28 WindowManagerFactoryRegistryTestApi(WindowManagerFactoryRegistry* registry); | 28 WindowManagerFactoryRegistryTestApi(WindowManagerFactoryRegistry* registry); |
| 29 ~WindowManagerFactoryRegistryTestApi(); | 29 ~WindowManagerFactoryRegistryTestApi(); |
| 30 | 30 |
| 31 void AddService(UserId user_id, mojom::WindowManagerFactory* factory); | 31 void AddService(const UserId& user_id, mojom::WindowManagerFactory* factory); |
| 32 | 32 |
| 33 private: | 33 private: |
| 34 WindowManagerFactoryRegistry* registry_; | 34 WindowManagerFactoryRegistry* registry_; |
| 35 | 35 |
| 36 DISALLOW_COPY_AND_ASSIGN(WindowManagerFactoryRegistryTestApi); | 36 DISALLOW_COPY_AND_ASSIGN(WindowManagerFactoryRegistryTestApi); |
| 37 }; | 37 }; |
| 38 | 38 |
| 39 // ----------------------------------------------------------------------------- | 39 // ----------------------------------------------------------------------------- |
| 40 | 40 |
| 41 class WindowTreeTestApi { | 41 class WindowTreeTestApi { |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 bool got_on_no_more_connections_ = false; | 234 bool got_on_no_more_connections_ = false; |
| 235 | 235 |
| 236 DISALLOW_COPY_AND_ASSIGN(TestConnectionManagerDelegate); | 236 DISALLOW_COPY_AND_ASSIGN(TestConnectionManagerDelegate); |
| 237 }; | 237 }; |
| 238 | 238 |
| 239 } // namespace test | 239 } // namespace test |
| 240 } // namespace ws | 240 } // namespace ws |
| 241 } // namespace mus | 241 } // namespace mus |
| 242 | 242 |
| 243 #endif // COMPONENTS_MUS_WS_TEST_UTILS_H_ | 243 #endif // COMPONENTS_MUS_WS_TEST_UTILS_H_ |
| OLD | NEW |