OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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/public/cpp/mus_property_mirror_ash.h" | 5 #include "ash/public/cpp/mus_property_mirror_ash.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "ash/common/test/ash_test.h" | |
10 #include "ash/common/wm_window.h" | |
11 #include "ash/public/cpp/window_properties.h" | 9 #include "ash/public/cpp/window_properties.h" |
| 10 #include "ash/test/ash_test.h" |
| 11 #include "ash/wm_window.h" |
12 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
13 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
14 #include "ui/aura/client/aura_constants.h" | 14 #include "ui/aura/client/aura_constants.h" |
15 #include "ui/aura/window.h" | 15 #include "ui/aura/window.h" |
16 | 16 |
17 namespace ash { | 17 namespace ash { |
18 | 18 |
19 using MusPropertyMirrorAshTest = AshTest; | 19 using MusPropertyMirrorAshTest = AshTest; |
20 | 20 |
21 // Ensure the property mirror can copy primitive properties between windows. | 21 // Ensure the property mirror can copy primitive properties between windows. |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 window_1->SetProperty(aura::client::kWindowIconKey, new gfx::ImageSkia()); | 81 window_1->SetProperty(aura::client::kWindowIconKey, new gfx::ImageSkia()); |
82 EXPECT_NE(nullptr, window_1->GetProperty(aura::client::kWindowIconKey)); | 82 EXPECT_NE(nullptr, window_1->GetProperty(aura::client::kWindowIconKey)); |
83 mus_property_mirror_ash.MirrorPropertyFromWidgetWindowToRootWindow( | 83 mus_property_mirror_ash.MirrorPropertyFromWidgetWindowToRootWindow( |
84 window_1, window_2, aura::client::kWindowIconKey); | 84 window_1, window_2, aura::client::kWindowIconKey); |
85 EXPECT_NE(nullptr, window_2->GetProperty(aura::client::kWindowIconKey)); | 85 EXPECT_NE(nullptr, window_2->GetProperty(aura::client::kWindowIconKey)); |
86 EXPECT_NE(window_1->GetProperty(aura::client::kWindowIconKey), | 86 EXPECT_NE(window_1->GetProperty(aura::client::kWindowIconKey), |
87 window_2->GetProperty(aura::client::kWindowIconKey)); | 87 window_2->GetProperty(aura::client::kWindowIconKey)); |
88 } | 88 } |
89 | 89 |
90 } // namespace ash | 90 } // namespace ash |
OLD | NEW |