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

Side by Side Diff: ui/aura/window_event_dispatcher_unittest.cc

Issue 2876013002: Add missing IWYU message_loop.h includes. (Closed)
Patch Set: fix upstream 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/aura/window_event_dispatcher.h" 5 #include "ui/aura/window_event_dispatcher.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/message_loop/message_loop.h"
14 #include "base/run_loop.h" 15 #include "base/run_loop.h"
15 #include "base/single_thread_task_runner.h" 16 #include "base/single_thread_task_runner.h"
16 #include "base/test/histogram_tester.h" 17 #include "base/test/histogram_tester.h"
17 #include "base/threading/thread_task_runner_handle.h" 18 #include "base/threading/thread_task_runner_handle.h"
18 #include "build/build_config.h" 19 #include "build/build_config.h"
19 #include "testing/gtest/include/gtest/gtest.h" 20 #include "testing/gtest/include/gtest/gtest.h"
20 #include "ui/aura/client/capture_client.h" 21 #include "ui/aura/client/capture_client.h"
21 #include "ui/aura/client/event_client.h" 22 #include "ui/aura/client/event_client.h"
22 #include "ui/aura/client/focus_client.h" 23 #include "ui/aura/client/focus_client.h"
23 #include "ui/aura/env.h" 24 #include "ui/aura/env.h"
(...skipping 2923 matching lines...) Expand 10 before | Expand all | Expand 10 after
2947 EXPECT_EQ(1, last_event_location_delegate.mouse_event_count()); 2948 EXPECT_EQ(1, last_event_location_delegate.mouse_event_count());
2948 EXPECT_EQ(1, last_event_location_delegate.nested_message_loop_count()); 2949 EXPECT_EQ(1, last_event_location_delegate.nested_message_loop_count());
2949 EXPECT_EQ(mouse_location, last_event_location_delegate.last_mouse_location()); 2950 EXPECT_EQ(mouse_location, last_event_location_delegate.last_mouse_location());
2950 2951
2951 // After dispatch the location should fallback to that of the 2952 // After dispatch the location should fallback to that of the
2952 // WindowTreeClient, which defaults to 0,0. 2953 // WindowTreeClient, which defaults to 0,0.
2953 EXPECT_EQ(gfx::Point(0, 0), Env::GetInstance()->last_mouse_location()); 2954 EXPECT_EQ(gfx::Point(0, 0), Env::GetInstance()->last_mouse_location());
2954 } 2955 }
2955 2956
2956 } // namespace aura 2957 } // namespace aura
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698