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

Unified Diff: gpu/vulkan/tests/vulkan_test.cc

Issue 1859703002: convert //gpu to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master 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 | « gpu/tools/compositor_model_bench/shaders.cc ('k') | gpu/vulkan/vulkan_command_buffer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/vulkan/tests/vulkan_test.cc
diff --git a/gpu/vulkan/tests/vulkan_test.cc b/gpu/vulkan/tests/vulkan_test.cc
index ec471a7564264507eaa1f97ae56a60471af11f8b..96c445ae5e9823e4417239ae3467cbd7ebd82801 100644
--- a/gpu/vulkan/tests/vulkan_test.cc
+++ b/gpu/vulkan/tests/vulkan_test.cc
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <memory>
+
#include "gpu/vulkan/tests/native_window.h"
#include "gpu/vulkan/vulkan_command_buffer.h"
#include "gpu/vulkan/vulkan_device_queue.h"
@@ -40,7 +42,7 @@ class BasicVulkanTest : public testing::Test {
};
TEST_F(BasicVulkanTest, BasicVulkanSurface) {
- scoped_ptr<VulkanSurface> surface =
+ std::unique_ptr<VulkanSurface> surface =
VulkanSurface::CreateViewSurface(window());
EXPECT_TRUE(surface);
EXPECT_TRUE(surface->Initialize(GetDeviceQueue(),
@@ -49,7 +51,7 @@ TEST_F(BasicVulkanTest, BasicVulkanSurface) {
}
TEST_F(BasicVulkanTest, EmptyVulkanSwaps) {
- scoped_ptr<VulkanSurface> surface =
+ std::unique_ptr<VulkanSurface> surface =
VulkanSurface::CreateViewSurface(window());
ASSERT_TRUE(surface);
ASSERT_TRUE(surface->Initialize(GetDeviceQueue(),
@@ -67,7 +69,7 @@ TEST_F(BasicVulkanTest, EmptyVulkanSwaps) {
}
TEST_F(BasicVulkanTest, BasicRenderPass) {
- scoped_ptr<VulkanSurface> surface =
+ std::unique_ptr<VulkanSurface> surface =
VulkanSurface::CreateViewSurface(window());
ASSERT_TRUE(surface);
ASSERT_TRUE(surface->Initialize(GetDeviceQueue(),
« no previous file with comments | « gpu/tools/compositor_model_bench/shaders.cc ('k') | gpu/vulkan/vulkan_command_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698