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

Side by Side Diff: ui/views/mus/pointer_watcher_event_router2_unittest.cc

Issue 2598963005: Include-what-you-use for WrapUnique/MakeUnique. (Closed)
Patch Set: restore order of includes in x11_topmost_window_finder_interactive_uitest.cc Created 3 years, 12 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 #include "ui/views/mus/pointer_watcher_event_router2.h" 5 #include "ui/views/mus/pointer_watcher_event_router2.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/memory/ptr_util.h"
9 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
10 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
11 #include "ui/aura/test/mus/window_tree_client_private.h" 12 #include "ui/aura/test/mus/window_tree_client_private.h"
12 #include "ui/events/event.h" 13 #include "ui/events/event.h"
13 #include "ui/views/mus/mus_client.h" 14 #include "ui/views/mus/mus_client.h"
14 #include "ui/views/pointer_watcher.h" 15 #include "ui/views/pointer_watcher.h"
15 #include "ui/views/test/scoped_views_test_helper.h" 16 #include "ui/views/test/scoped_views_test_helper.h"
16 17
17 namespace views { 18 namespace views {
18 namespace { 19 namespace {
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 watcher2.Reset(); 233 watcher2.Reset();
233 234
234 // Removing the last PointerWatcher stops sending events to it. 235 // Removing the last PointerWatcher stops sending events to it.
235 pointer_watcher_event_router->RemovePointerWatcher(&watcher2); 236 pointer_watcher_event_router->RemovePointerWatcher(&watcher2);
236 OnPointerEventObserved(pointer_event_move); 237 OnPointerEventObserved(pointer_event_move);
237 EXPECT_FALSE(watcher1.last_event_observed()); 238 EXPECT_FALSE(watcher1.last_event_observed());
238 EXPECT_FALSE(watcher2.last_event_observed()); 239 EXPECT_FALSE(watcher2.last_event_observed());
239 } 240 }
240 241
241 } // namespace views 242 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/mus/native_widget_mus_unittest.cc ('k') | ui/views/mus/pointer_watcher_event_router_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698