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 #include "ash/common/metrics/pointer_metrics_recorder.h" | 5 #include "ash/metrics/pointer_metrics_recorder.h" |
6 | 6 |
7 #include "ash/common/wm/maximize_mode/maximize_mode_controller.h" | |
8 #include "ash/common/wm_shell.h" | |
9 #include "ash/common/wm_window.h" | |
10 #include "ash/public/cpp/shell_window_ids.h" | 7 #include "ash/public/cpp/shell_window_ids.h" |
11 #include "ash/shared/app_types.h" | 8 #include "ash/shared/app_types.h" |
12 #include "ash/test/ash_test_base.h" | 9 #include "ash/test/ash_test_base.h" |
| 10 #include "ash/wm/maximize_mode/maximize_mode_controller.h" |
| 11 #include "ash/wm_shell.h" |
| 12 #include "ash/wm_window.h" |
13 #include "base/test/histogram_tester.h" | 13 #include "base/test/histogram_tester.h" |
14 #include "ui/events/event.h" | 14 #include "ui/events/event.h" |
15 #include "ui/views/pointer_watcher.h" | 15 #include "ui/views/pointer_watcher.h" |
16 #include "ui/views/widget/widget.h" | 16 #include "ui/views/widget/widget.h" |
17 | 17 |
18 using views::PointerWatcher; | 18 using views::PointerWatcher; |
19 | 19 |
20 namespace ash { | 20 namespace ash { |
21 namespace { | 21 namespace { |
22 | 22 |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 target.get()); | 176 target.get()); |
177 histogram_tester_->ExpectBucketCount(kDestinationHistogramName, 2, 1); | 177 histogram_tester_->ExpectBucketCount(kDestinationHistogramName, 2, 1); |
178 | 178 |
179 window->SetAppType(static_cast<int>(AppType::ARC_APP)); | 179 window->SetAppType(static_cast<int>(AppType::ARC_APP)); |
180 pointer_metrics_recorder_->OnPointerEventObserved(pointer_event, gfx::Point(), | 180 pointer_metrics_recorder_->OnPointerEventObserved(pointer_event, gfx::Point(), |
181 target.get()); | 181 target.get()); |
182 histogram_tester_->ExpectBucketCount(kDestinationHistogramName, 3, 1); | 182 histogram_tester_->ExpectBucketCount(kDestinationHistogramName, 3, 1); |
183 } | 183 } |
184 | 184 |
185 } // namespace ash | 185 } // namespace ash |
OLD | NEW |