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

Unified Diff: cc/output/output_surface_unittest.cc

Issue 1866203004: Convert //cc from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptrcc: rebase Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/output/output_surface.cc ('k') | cc/output/overlay_processor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/output_surface_unittest.cc
diff --git a/cc/output/output_surface_unittest.cc b/cc/output/output_surface_unittest.cc
index 36848522ea5bba9f9c2f2cc6a2ef995a73c8b7ce..1014ad1f1d8aebfd54d130828907e4b68d559089 100644
--- a/cc/output/output_surface_unittest.cc
+++ b/cc/output/output_surface_unittest.cc
@@ -4,6 +4,7 @@
#include "cc/output/output_surface.h"
+#include "base/memory/ptr_util.h"
#include "base/test/test_simple_task_runner.h"
#include "cc/output/managed_memory_policy.h"
#include "cc/output/output_surface_client.h"
@@ -28,11 +29,12 @@ class TestOutputSurface : public OutputSurface {
scoped_refptr<ContextProvider> worker_context_provider)
: OutputSurface(worker_context_provider) {}
- explicit TestOutputSurface(scoped_ptr<SoftwareOutputDevice> software_device)
+ explicit TestOutputSurface(
+ std::unique_ptr<SoftwareOutputDevice> software_device)
: OutputSurface(std::move(software_device)) {}
TestOutputSurface(scoped_refptr<ContextProvider> context_provider,
- scoped_ptr<SoftwareOutputDevice> software_device)
+ std::unique_ptr<SoftwareOutputDevice> software_device)
: OutputSurface(context_provider, std::move(software_device)) {}
void SwapBuffers(CompositorFrame* frame) override {
@@ -158,7 +160,7 @@ TEST(OutputSurfaceTest, SoftwareOutputDeviceBackbufferManagement) {
// TestOutputSurface now owns software_output_device and has responsibility to
// free it.
- TestOutputSurface output_surface(make_scoped_ptr(software_output_device));
+ TestOutputSurface output_surface(base::WrapUnique(software_output_device));
EXPECT_EQ(0, software_output_device->ensure_backbuffer_count());
EXPECT_EQ(0, software_output_device->discard_backbuffer_count());
« no previous file with comments | « cc/output/output_surface.cc ('k') | cc/output/overlay_processor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698