OLD | NEW |
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 "ash/wm/video_detector.h" | 5 #include "ash/wm/video_detector.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
| 9 #include "ash/common/wm/window_state.h" |
| 10 #include "ash/common/wm/wm_event.h" |
9 #include "ash/shell.h" | 11 #include "ash/shell.h" |
10 #include "ash/test/ash_test_base.h" | 12 #include "ash/test/ash_test_base.h" |
11 #include "ash/wm/common/window_state.h" | |
12 #include "ash/wm/common/wm_event.h" | |
13 #include "ash/wm/window_state_aura.h" | 13 #include "ash/wm/window_state_aura.h" |
14 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
15 #include "base/time/time.h" | 15 #include "base/time/time.h" |
16 #include "third_party/skia/include/core/SkColor.h" | 16 #include "third_party/skia/include/core/SkColor.h" |
17 #include "ui/aura/client/aura_constants.h" | 17 #include "ui/aura/client/aura_constants.h" |
18 #include "ui/aura/test/test_windows.h" | 18 #include "ui/aura/test/test_windows.h" |
19 #include "ui/aura/window.h" | 19 #include "ui/aura/window.h" |
20 #include "ui/aura/window_event_dispatcher.h" | 20 #include "ui/aura/window_event_dispatcher.h" |
21 #include "ui/gfx/geometry/rect.h" | 21 #include "ui/gfx/geometry/rect.h" |
22 #include "ui/wm/public/window_types.h" | 22 #include "ui/wm/public/window_types.h" |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
332 AdvanceTime(base::TimeDelta::FromSeconds(2)); | 332 AdvanceTime(base::TimeDelta::FromSeconds(2)); |
333 for (int i = 0; i < VideoDetector::kMinFramesPerSecond; ++i) | 333 for (int i = 0; i < VideoDetector::kMinFramesPerSecond; ++i) |
334 detector_->OnDelegatedFrameDamage(window.get(), kUpdateRegion); | 334 detector_->OnDelegatedFrameDamage(window.get(), kUpdateRegion); |
335 EXPECT_EQ(1, observer_->num_invocations()); | 335 EXPECT_EQ(1, observer_->num_invocations()); |
336 EXPECT_EQ(0, observer_->num_fullscreens()); | 336 EXPECT_EQ(0, observer_->num_fullscreens()); |
337 EXPECT_EQ(1, observer_->num_not_fullscreens()); | 337 EXPECT_EQ(1, observer_->num_not_fullscreens()); |
338 } | 338 } |
339 | 339 |
340 } // namespace test | 340 } // namespace test |
341 } // namespace ash | 341 } // namespace ash |
OLD | NEW |