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

Side by Side Diff: ash/wm/video_detector_unittest.cc

Issue 2030593002: Renames ash/wm/common into ash/common/wm (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « ash/wm/video_detector.cc ('k') | ash/wm/window_animations.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "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
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
OLDNEW
« no previous file with comments | « ash/wm/video_detector.cc ('k') | ash/wm/window_animations.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698