OLD | NEW |
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 "ash/common/shelf/shelf_button_pressed_metric_tracker.h" | 5 #include "ash/shelf/shelf_button_pressed_metric_tracker.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "ash/common/shelf/wm_shelf.h" | 9 #include "ash/shelf/wm_shelf.h" |
10 #include "ash/common/wm_shell.h" | |
11 #include "ash/test/ash_test_base.h" | 10 #include "ash/test/ash_test_base.h" |
12 #include "ash/test/shelf_button_pressed_metric_tracker_test_api.h" | 11 #include "ash/test/shelf_button_pressed_metric_tracker_test_api.h" |
13 #include "ash/test/shelf_view_test_api.h" | 12 #include "ash/test/shelf_view_test_api.h" |
| 13 #include "ash/wm_shell.h" |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "base/test/histogram_tester.h" | 15 #include "base/test/histogram_tester.h" |
16 #include "base/test/simple_test_tick_clock.h" | 16 #include "base/test/simple_test_tick_clock.h" |
17 #include "base/test/user_action_tester.h" | 17 #include "base/test/user_action_tester.h" |
18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
19 #include "ui/events/event.h" | 19 #include "ui/events/event.h" |
20 #include "ui/views/controls/button/button.h" | 20 #include "ui/views/controls/button/button.h" |
21 | 21 |
22 namespace ash { | 22 namespace ash { |
23 namespace test { | 23 namespace test { |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 | 305 |
306 histogram_tester.ExpectTotalCount( | 306 histogram_tester.ExpectTotalCount( |
307 kTimeBetweenWindowMinimizedAndActivatedActionsHistogramName, 1); | 307 kTimeBetweenWindowMinimizedAndActivatedActionsHistogramName, 1); |
308 histogram_tester.ExpectBucketCount( | 308 histogram_tester.ExpectBucketCount( |
309 kTimeBetweenWindowMinimizedAndActivatedActionsHistogramName, | 309 kTimeBetweenWindowMinimizedAndActivatedActionsHistogramName, |
310 kTimeDeltaInMilliseconds, 1); | 310 kTimeDeltaInMilliseconds, 1); |
311 } | 311 } |
312 | 312 |
313 } // namespace test | 313 } // namespace test |
314 } // namespace ash | 314 } // namespace ash |
OLD | NEW |