| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "ui/views/widget/desktop_aura/desktop_native_widget_aura.h" | 5 #include "ui/views/widget/desktop_aura/desktop_native_widget_aura.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
| 10 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
| (...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 | 373 |
| 374 DISALLOW_COPY_AND_ASSIGN(DesktopAuraTopLevelWindowTest); | 374 DISALLOW_COPY_AND_ASSIGN(DesktopAuraTopLevelWindowTest); |
| 375 }; | 375 }; |
| 376 | 376 |
| 377 class DesktopAuraWidgetTest : public WidgetTest { | 377 class DesktopAuraWidgetTest : public WidgetTest { |
| 378 public: | 378 public: |
| 379 DesktopAuraWidgetTest() {} | 379 DesktopAuraWidgetTest() {} |
| 380 | 380 |
| 381 void SetUp() override { | 381 void SetUp() override { |
| 382 ViewsTestBase::SetUp(); | 382 ViewsTestBase::SetUp(); |
| 383 views_delegate()->set_use_desktop_native_widgets(true); | 383 test_views_delegate()->set_use_desktop_native_widgets(true); |
| 384 } | 384 } |
| 385 | 385 |
| 386 private: | 386 private: |
| 387 DISALLOW_COPY_AND_ASSIGN(DesktopAuraWidgetTest); | 387 DISALLOW_COPY_AND_ASSIGN(DesktopAuraWidgetTest); |
| 388 }; | 388 }; |
| 389 | 389 |
| 390 TEST_F(DesktopAuraWidgetTest, FullscreenWindowDestroyedBeforeOwnerTest) { | 390 TEST_F(DesktopAuraWidgetTest, FullscreenWindowDestroyedBeforeOwnerTest) { |
| 391 DesktopAuraTopLevelWindowTest fullscreen_window; | 391 DesktopAuraTopLevelWindowTest fullscreen_window; |
| 392 ASSERT_NO_FATAL_FAILURE(fullscreen_window.CreateTopLevelWindow( | 392 ASSERT_NO_FATAL_FAILURE(fullscreen_window.CreateTopLevelWindow( |
| 393 gfx::Rect(0, 0, 200, 200), true)); | 393 gfx::Rect(0, 0, 200, 200), true)); |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 674 target->HandleKeyboardMessage(WM_CHAR, 0, 0, &handled); | 674 target->HandleKeyboardMessage(WM_CHAR, 0, 0, &handled); |
| 675 target->HandleKeyboardMessage(WM_SYSCHAR, 0, 0, &handled); | 675 target->HandleKeyboardMessage(WM_SYSCHAR, 0, 0, &handled); |
| 676 target->HandleKeyboardMessage(WM_SYSDEADCHAR, 0, 0, &handled); | 676 target->HandleKeyboardMessage(WM_SYSDEADCHAR, 0, 0, &handled); |
| 677 widget.CloseNow(); | 677 widget.CloseNow(); |
| 678 } | 678 } |
| 679 | 679 |
| 680 #endif // defined(OS_WIN) | 680 #endif // defined(OS_WIN) |
| 681 | 681 |
| 682 } // namespace test | 682 } // namespace test |
| 683 } // namespace views | 683 } // namespace views |
| OLD | NEW |