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

Side by Side Diff: ui/gfx/ozone/dri/hardware_display_controller_unittest.cc

Issue 62953003: Support removal of DRI platform (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix use_ozone=0 Created 7 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « ui/gfx/ozone/dri/hardware_display_controller.cc ('k') | ui/gfx/ozone/impl/dri_skbitmap.h » ('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 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 "testing/gtest/include/gtest/gtest.h" 5 #include "testing/gtest/include/gtest/gtest.h"
6 #include "ui/gfx/ozone/impl/dri_skbitmap.h" 6 #include "ui/gfx/ozone/dri/dri_skbitmap.h"
7 #include "ui/gfx/ozone/impl/dri_surface.h" 7 #include "ui/gfx/ozone/dri/dri_surface.h"
8 #include "ui/gfx/ozone/impl/dri_wrapper.h" 8 #include "ui/gfx/ozone/dri/dri_wrapper.h"
9 #include "ui/gfx/ozone/impl/hardware_display_controller.h" 9 #include "ui/gfx/ozone/dri/hardware_display_controller.h"
10 10
11 namespace { 11 namespace {
12 12
13 // Create a basic mode for a 6x4 screen. 13 // Create a basic mode for a 6x4 screen.
14 const drmModeModeInfo kDefaultMode = 14 const drmModeModeInfo kDefaultMode =
15 {0, 6, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, {'\0'}}; 15 {0, 6, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, {'\0'}};
16 16
17 // Mock file descriptor ID. 17 // Mock file descriptor ID.
18 const int kFd = 3; 18 const int kFd = 3;
19 19
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 292
293 EXPECT_EQ(gfx::HardwareDisplayController::SURFACE_INITIALIZED, 293 EXPECT_EQ(gfx::HardwareDisplayController::SURFACE_INITIALIZED,
294 controller_->get_state()); 294 controller_->get_state());
295 295
296 controller_.reset(); 296 controller_.reset();
297 297
298 EXPECT_EQ(2, drm_->get_remove_framebuffer_call_count()); 298 EXPECT_EQ(2, drm_->get_remove_framebuffer_call_count());
299 EXPECT_EQ(1, drm_->get_restore_crtc_call_count()); 299 EXPECT_EQ(1, drm_->get_restore_crtc_call_count());
300 EXPECT_EQ(1, drm_->get_free_crtc_call_count()); 300 EXPECT_EQ(1, drm_->get_free_crtc_call_count());
301 } 301 }
OLDNEW
« no previous file with comments | « ui/gfx/ozone/dri/hardware_display_controller.cc ('k') | ui/gfx/ozone/impl/dri_skbitmap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698