OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/wm/core/capture_controller.h" | 5 #include "ui/wm/core/capture_controller.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
10 #include "ui/aura/env.h" | 10 #include "ui/aura/env.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 // interactive_ui_tests. | 27 // interactive_ui_tests. |
28 | 28 |
29 namespace views { | 29 namespace views { |
30 | 30 |
31 class DesktopCaptureControllerTest : public ViewsTestBase { | 31 class DesktopCaptureControllerTest : public ViewsTestBase { |
32 public: | 32 public: |
33 DesktopCaptureControllerTest() {} | 33 DesktopCaptureControllerTest() {} |
34 ~DesktopCaptureControllerTest() override {} | 34 ~DesktopCaptureControllerTest() override {} |
35 | 35 |
36 void SetUp() override { | 36 void SetUp() override { |
37 gfx::GLSurfaceTestSupport::InitializeOneOff(); | 37 gl::GLSurfaceTestSupport::InitializeOneOff(); |
38 ui::RegisterPathProvider(); | 38 ui::RegisterPathProvider(); |
39 base::FilePath ui_test_pak_path; | 39 base::FilePath ui_test_pak_path; |
40 ASSERT_TRUE(PathService::Get(ui::UI_TEST_PAK, &ui_test_pak_path)); | 40 ASSERT_TRUE(PathService::Get(ui::UI_TEST_PAK, &ui_test_pak_path)); |
41 ui::ResourceBundle::InitSharedInstanceWithPakPath(ui_test_pak_path); | 41 ui::ResourceBundle::InitSharedInstanceWithPakPath(ui_test_pak_path); |
42 | 42 |
43 ViewsTestBase::SetUp(); | 43 ViewsTestBase::SetUp(); |
44 } | 44 } |
45 }; | 45 }; |
46 | 46 |
47 // This class provides functionality to verify whether the View instance | 47 // This class provides functionality to verify whether the View instance |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 | 194 |
195 EXPECT_TRUE(v2->received_gesture_event()); | 195 EXPECT_TRUE(v2->received_gesture_event()); |
196 EXPECT_FALSE(v1->received_gesture_event()); | 196 EXPECT_FALSE(v1->received_gesture_event()); |
197 | 197 |
198 widget1->CloseNow(); | 198 widget1->CloseNow(); |
199 widget2->CloseNow(); | 199 widget2->CloseNow(); |
200 RunPendingMessages(); | 200 RunPendingMessages(); |
201 } | 201 } |
202 | 202 |
203 } // namespace views | 203 } // namespace views |
OLD | NEW |