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

Side by Side Diff: gpu/command_buffer/service/buffer_manager_unittest.cc

Issue 10796096: Add tracing of all memory allocated in all contexts (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More trybot constructor fixes Created 8 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "gpu/command_buffer/service/buffer_manager.h" 5 #include "gpu/command_buffer/service/buffer_manager.h"
6 #include "gpu/command_buffer/common/gl_mock.h" 6 #include "gpu/command_buffer/common/gl_mock.h"
7 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
8 8
9 namespace gpu { 9 namespace gpu {
10 namespace gles2 { 10 namespace gles2 {
11 11
12 class BufferManagerTest : public testing::Test { 12 class BufferManagerTest : public testing::Test {
13 public: 13 public:
14 BufferManagerTest() { 14 BufferManagerTest() : manager_(NULL) {
15 } 15 }
16 ~BufferManagerTest() { 16 ~BufferManagerTest() {
17 manager_.Destroy(false); 17 manager_.Destroy(false);
18 } 18 }
19 19
20 protected: 20 protected:
21 virtual void SetUp() { 21 virtual void SetUp() {
22 gl_.reset(new ::testing::StrictMock< ::gfx::MockGLInterface>()); 22 gl_.reset(new ::testing::StrictMock< ::gfx::MockGLInterface>());
23 ::gfx::GLInterface::SetGLInterface(gl_.get()); 23 ::gfx::GLInterface::SetGLInterface(gl_.get());
24 } 24 }
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 EXPECT_CALL(*gl_, DeleteBuffersARB(1, ::testing::Pointee(kServiceBufferId))) 241 EXPECT_CALL(*gl_, DeleteBuffersARB(1, ::testing::Pointee(kServiceBufferId)))
242 .Times(1) 242 .Times(1)
243 .RetiresOnSaturation(); 243 .RetiresOnSaturation();
244 info = NULL; 244 info = NULL;
245 } 245 }
246 246
247 } // namespace gles2 247 } // namespace gles2
248 } // namespace gpu 248 } // namespace gpu
249 249
250 250
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/buffer_manager.cc ('k') | gpu/command_buffer/service/context_group.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698