| OLD | NEW |
| 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 |
| OLD | NEW |