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

Side by Side Diff: gpu/command_buffer/client/share_group_unittest.cc

Issue 9918027: Make ShareGroup thread safe (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add id==0 check Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « gpu/command_buffer/client/share_group.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // Tests for the ShareGroup. 5 // Tests for the ShareGroup.
6 6
7 #include "gpu/command_buffer/client/share_group.h" 7 #include "gpu/command_buffer/client/share_group.h"
8 8
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 #include "testing/gmock/include/gmock/gmock.h" 10 #include "testing/gmock/include/gmock/gmock.h"
11 11
12 namespace gpu { 12 namespace gpu {
13 namespace gles2 { 13 namespace gles2 {
14 14
15 class ShareGroupTest : public testing::Test { 15 class ShareGroupTest : public testing::Test {
16 protected: 16 protected:
17 17
18 virtual void SetUp() { 18 virtual void SetUp() {
19 share_group_ = ShareGroup::Ref(new ShareGroup()); 19 share_group_ = ShareGroup::Ref(new ShareGroup(false, false));
20 } 20 }
21 21
22 virtual void TearDown() { 22 virtual void TearDown() {
23 } 23 }
24 24
25 scoped_refptr<ShareGroup> share_group_; 25 scoped_refptr<ShareGroup> share_group_;
26 }; 26 };
27 27
28 TEST_F(ShareGroupTest, Basic) { 28 TEST_F(ShareGroupTest, Basic) {
29 EXPECT_TRUE(ShareGroup::ImplementsThreadSafeReferenceCounting()); 29 EXPECT_TRUE(ShareGroup::ImplementsThreadSafeReferenceCounting());
30 } 30 }
31 31
32 } // namespace gles2 32 } // namespace gles2
33 } // namespace gpu 33 } // namespace gpu
34 34
35 35
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/share_group.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698