| 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 "base/macros.h" | 5 #include "base/macros.h" |
| 6 #include "base/strings/string_number_conversions.h" | 6 #include "base/strings/string_number_conversions.h" |
| 7 #include "components/mus/ws/server_window.h" | 7 #include "services/ui/ws/server_window.h" |
| 8 #include "components/mus/ws/server_window_observer.h" | 8 #include "services/ui/ws/server_window_observer.h" |
| 9 #include "components/mus/ws/test_server_window_delegate.h" | 9 #include "services/ui/ws/test_server_window_delegate.h" |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| 11 | 11 |
| 12 namespace mus { | 12 namespace mus { |
| 13 namespace ws { | 13 namespace ws { |
| 14 | 14 |
| 15 namespace { | 15 namespace { |
| 16 | 16 |
| 17 class TestTransientWindowObserver : public ServerWindowObserver { | 17 class TestTransientWindowObserver : public ServerWindowObserver { |
| 18 public: | 18 public: |
| 19 TestTransientWindowObserver() : add_count_(0), remove_count_(0) {} | 19 TestTransientWindowObserver() : add_count_(0), remove_count_(0) {} |
| (...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 | 333 |
| 334 parent->RemoveTransientWindow(w1.get()); | 334 parent->RemoveTransientWindow(w1.get()); |
| 335 EXPECT_EQ(1, test_observer.add_count()); | 335 EXPECT_EQ(1, test_observer.add_count()); |
| 336 EXPECT_EQ(1, test_observer.remove_count()); | 336 EXPECT_EQ(1, test_observer.remove_count()); |
| 337 | 337 |
| 338 parent->RemoveObserver(&test_observer); | 338 parent->RemoveObserver(&test_observer); |
| 339 } | 339 } |
| 340 | 340 |
| 341 } // namespace ws | 341 } // namespace ws |
| 342 } // namespace mus | 342 } // namespace mus |
| OLD | NEW |