OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "athena/wm/window_list_provider_impl.h" | 5 #include "athena/wm/window_list_provider_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "athena/test/athena_test_base.h" | 9 #include "athena/test/base/athena_test_base.h" |
10 #include "athena/wm/public/window_list_provider_observer.h" | 10 #include "athena/wm/public/window_list_provider_observer.h" |
11 #include "ui/aura/test/test_window_delegate.h" | 11 #include "ui/aura/test/test_window_delegate.h" |
12 #include "ui/aura/window.h" | 12 #include "ui/aura/window.h" |
13 | 13 |
14 namespace athena { | 14 namespace athena { |
15 | 15 |
16 namespace { | 16 namespace { |
17 | 17 |
18 bool AreWindowListsEqual(const aura::Window::Windows& one, | 18 bool AreWindowListsEqual(const aura::Window::Windows& one, |
19 const aura::Window::Windows& two) { | 19 const aura::Window::Windows& two) { |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 window1.reset(); | 281 window1.reset(); |
282 ASSERT_EQ(1U, list_provider->GetWindowList().size()); | 282 ASSERT_EQ(1U, list_provider->GetWindowList().size()); |
283 EXPECT_EQ(2, observer->window_removal_calls()); | 283 EXPECT_EQ(2, observer->window_removal_calls()); |
284 | 284 |
285 window3.reset(); | 285 window3.reset(); |
286 ASSERT_EQ(0U, list_provider->GetWindowList().size()); | 286 ASSERT_EQ(0U, list_provider->GetWindowList().size()); |
287 EXPECT_EQ(3, observer->window_removal_calls()); | 287 EXPECT_EQ(3, observer->window_removal_calls()); |
288 } | 288 } |
289 | 289 |
290 } // namespace athena | 290 } // namespace athena |
OLD | NEW |