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

Side by Side Diff: mash/wm/window_manager_unittest.cc

Issue 1949823002: WIP: Eliminate event.target() usage from TrayEventFilter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: container delegate Created 4 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 | « mash/wm/root_window_controller.cc ('k') | ui/views/mus/native_widget_mus.h » ('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 #include <stdint.h> 5 #include <stdint.h>
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 11 matching lines...) Expand all
22 22
23 class WindowTreeDelegateImpl : public mus::WindowTreeDelegate { 23 class WindowTreeDelegateImpl : public mus::WindowTreeDelegate {
24 public: 24 public:
25 WindowTreeDelegateImpl() {} 25 WindowTreeDelegateImpl() {}
26 ~WindowTreeDelegateImpl() override {} 26 ~WindowTreeDelegateImpl() override {}
27 27
28 private: 28 private:
29 // mus::WindowTreeDelegate: 29 // mus::WindowTreeDelegate:
30 void OnEmbed(mus::Window* root) override {} 30 void OnEmbed(mus::Window* root) override {}
31 void OnConnectionLost(mus::WindowTreeConnection* connection) override {} 31 void OnConnectionLost(mus::WindowTreeConnection* connection) override {}
32 void OnEventObserved(const ui::Event& event) override {} 32 void OnEventObserved(const ui::Event& event, mus::Window* target) override {}
33 33
34 DISALLOW_COPY_AND_ASSIGN(WindowTreeDelegateImpl); 34 DISALLOW_COPY_AND_ASSIGN(WindowTreeDelegateImpl);
35 }; 35 };
36 36
37 class WindowManagerTest : public shell::test::ShellTest { 37 class WindowManagerTest : public shell::test::ShellTest {
38 public: 38 public:
39 WindowManagerTest() : shell::test::ShellTest("exe:mash_unittests") {} 39 WindowManagerTest() : shell::test::ShellTest("exe:mash_unittests") {}
40 ~WindowManagerTest() override {} 40 ~WindowManagerTest() override {}
41 41
42 private: 42 private:
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 mus::Window* top_level_window = connection->NewTopLevelWindow(nullptr); 151 mus::Window* top_level_window = connection->NewTopLevelWindow(nullptr);
152 ASSERT_TRUE(top_level_window); 152 ASSERT_TRUE(top_level_window);
153 153
154 observer.WaitUntilWindowCountReaches(1u); 154 observer.WaitUntilWindowCountReaches(1u);
155 connection.reset(); 155 connection.reset();
156 observer.WaitUntilWindowCountReaches(0u); 156 observer.WaitUntilWindowCountReaches(0u);
157 } 157 }
158 158
159 } // namespace wm 159 } // namespace wm
160 } // namespace mash 160 } // namespace mash
OLDNEW
« no previous file with comments | « mash/wm/root_window_controller.cc ('k') | ui/views/mus/native_widget_mus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698