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 "components/mus/public/cpp/tests/test_window_tree.h" | 5 #include "components/mus/public/cpp/tests/test_window_tree.h" |
6 | 6 |
7 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
8 | 8 |
9 namespace mus { | 9 namespace mus { |
10 | 10 |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 uint32_t window_id) {} | 84 uint32_t window_id) {} |
85 | 85 |
86 void TestWindowTree::AddTransientWindow(uint32_t change_id, | 86 void TestWindowTree::AddTransientWindow(uint32_t change_id, |
87 uint32_t window_id, | 87 uint32_t window_id, |
88 uint32_t transient_window_id) {} | 88 uint32_t transient_window_id) {} |
89 | 89 |
90 void TestWindowTree::RemoveTransientWindowFromParent( | 90 void TestWindowTree::RemoveTransientWindowFromParent( |
91 uint32_t change_id, | 91 uint32_t change_id, |
92 uint32_t transient_window_id) {} | 92 uint32_t transient_window_id) {} |
93 | 93 |
94 void TestWindowTree::SetModal(uint32_t change_id, uint32_t window_id) {} | 94 void TestWindowTree::SetModal(uint32_t change_id, uint32_t window_id) { |
| 95 got_change_ = true; |
| 96 change_id_ = change_id; |
| 97 } |
95 | 98 |
96 void TestWindowTree::ReorderWindow(uint32_t change_id, | 99 void TestWindowTree::ReorderWindow(uint32_t change_id, |
97 uint32_t window_id, | 100 uint32_t window_id, |
98 uint32_t relative_window_id, | 101 uint32_t relative_window_id, |
99 mojom::OrderDirection direction) {} | 102 mojom::OrderDirection direction) {} |
100 | 103 |
101 void TestWindowTree::GetWindowTree(uint32_t window_id, | 104 void TestWindowTree::GetWindowTree(uint32_t window_id, |
102 const GetWindowTreeCallback& callback) {} | 105 const GetWindowTreeCallback& callback) {} |
103 | 106 |
104 void TestWindowTree::SetCapture(uint32_t change_id, uint32_t window_id) { | 107 void TestWindowTree::SetCapture(uint32_t change_id, uint32_t window_id) { |
(...skipping 30 matching lines...) Expand all Loading... |
135 | 138 |
136 void TestWindowTree::OnWindowInputEventAck(uint32_t event_id, bool handled) { | 139 void TestWindowTree::OnWindowInputEventAck(uint32_t event_id, bool handled) { |
137 EXPECT_FALSE(acked_events_.count(event_id)); | 140 EXPECT_FALSE(acked_events_.count(event_id)); |
138 acked_events_.insert(event_id); | 141 acked_events_.insert(event_id); |
139 } | 142 } |
140 | 143 |
141 void TestWindowTree::GetWindowManagerClient( | 144 void TestWindowTree::GetWindowManagerClient( |
142 mojo::AssociatedInterfaceRequest<mojom::WindowManagerClient> internal) {} | 145 mojo::AssociatedInterfaceRequest<mojom::WindowManagerClient> internal) {} |
143 | 146 |
144 } // namespace mus | 147 } // namespace mus |
OLD | NEW |