Index: gpu/command_buffer/service/memory_program_cache_unittest.cc |
diff --git a/gpu/command_buffer/service/memory_program_cache_unittest.cc b/gpu/command_buffer/service/memory_program_cache_unittest.cc |
index 7662942724c54d84e9d3cdfdea42d0079ee62bfb..a4a78c6299078af5dd2595aaa5fc8fb84dce4e07 100644 |
--- a/gpu/command_buffer/service/memory_program_cache_unittest.cc |
+++ b/gpu/command_buffer/service/memory_program_cache_unittest.cc |
@@ -7,6 +7,8 @@ |
#include <stddef.h> |
#include <stdint.h> |
+#include <memory> |
+ |
#include "base/bind.h" |
#include "gpu/command_buffer/common/gles2_cmd_format.h" |
#include "gpu/command_buffer/service/gl_utils.h" |
@@ -182,7 +184,7 @@ class MemoryProgramCacheTest : public GpuServiceTest { |
.WillOnce(SetArgPointee<2>(GL_FALSE)); |
} |
- scoped_ptr<MemoryProgramCache> cache_; |
+ std::unique_ptr<MemoryProgramCache> cache_; |
ShaderManager shader_manager_; |
Shader* vertex_shader_; |
Shader* fragment_shader_; |
@@ -560,8 +562,8 @@ TEST_F(MemoryProgramCacheTest, MemoryProgramCacheEviction) { |
fragment_shader_->set_source("al sdfkjdk"); |
TestHelper::SetShaderStates(gl_.get(), fragment_shader_, true); |
- scoped_ptr<char[]> bigTestBinary = |
- scoped_ptr<char[]>(new char[kEvictingBinaryLength]); |
+ std::unique_ptr<char[]> bigTestBinary = |
+ std::unique_ptr<char[]>(new char[kEvictingBinaryLength]); |
for (size_t i = 0; i < kEvictingBinaryLength; ++i) { |
bigTestBinary[i] = i % 250; |
} |