Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(454)

Side by Side Diff: ui/views/corewm/desktop_capture_controller_unittest.cc

Issue 1998723002: Move code in ui/gl/* from gfx:: to gl:: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/ozone/demo/surfaceless_gl_renderer.cc ('k') | ui/views/views_test_suite.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « ui/ozone/demo/surfaceless_gl_renderer.cc ('k') | ui/views/views_test_suite.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698