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

Unified Diff: gpu/command_buffer/service/buffer_manager_unittest.cc

Issue 13454036: Rewrite scoped_array<T> to scoped_ptr<T[]> in gpu/, Linux edition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Yikes Created 7 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/command_buffer/service/buffer_manager.cc ('k') | gpu/command_buffer/service/cmd_parser_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/buffer_manager_unittest.cc
diff --git a/gpu/command_buffer/service/buffer_manager_unittest.cc b/gpu/command_buffer/service/buffer_manager_unittest.cc
index a28d76f2638a6ce836afd284a3ccbae258816c2f..644b8646e581dadf14658d1171895b9136a48b62 100644
--- a/gpu/command_buffer/service/buffer_manager_unittest.cc
+++ b/gpu/command_buffer/service/buffer_manager_unittest.cc
@@ -208,7 +208,7 @@ TEST_F(BufferManagerTest, DoBufferSubData) {
EXPECT_FALSE(DoBufferSubData(buffer, 0, -1, data));
DoBufferData(buffer, 1, GL_STATIC_DRAW, NULL, GL_NO_ERROR);
const int size = 0x20000;
- scoped_array<uint8> temp(new uint8[size]);
+ scoped_ptr<uint8[]> temp(new uint8[size]);
EXPECT_FALSE(DoBufferSubData(buffer, 0 - size, size, temp.get()));
EXPECT_FALSE(DoBufferSubData(buffer, 1, size / 2, temp.get()));
}
« no previous file with comments | « gpu/command_buffer/service/buffer_manager.cc ('k') | gpu/command_buffer/service/cmd_parser_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698