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

Unified Diff: gpu/command_buffer/client/share_group_unittest.cc

Issue 9836126: Add ShareGroup stub (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 9 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/client/share_group.cc ('k') | gpu/gpu.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/client/share_group_unittest.cc
diff --git a/gpu/command_buffer/client/share_group_unittest.cc b/gpu/command_buffer/client/share_group_unittest.cc
new file mode 100644
index 0000000000000000000000000000000000000000..e0e643e962b864be93f5a5f802191d76f236ac12
--- /dev/null
+++ b/gpu/command_buffer/client/share_group_unittest.cc
@@ -0,0 +1,35 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Tests for the ShareGroup.
+
+#include "gpu/command_buffer/client/share_group.h"
+
+#include "testing/gtest/include/gtest/gtest.h"
+#include "testing/gmock/include/gmock/gmock.h"
+
+namespace gpu {
+namespace gles2 {
+
+class ShareGroupTest : public testing::Test {
+ protected:
+
+ virtual void SetUp() {
+ share_group_ = ShareGroup::Ref(new ShareGroup());
+ }
+
+ virtual void TearDown() {
+ }
+
+ scoped_refptr<ShareGroup> share_group_;
+};
+
+TEST_F(ShareGroupTest, Basic) {
+ EXPECT_TRUE(ShareGroup::ImplementsThreadSafeReferenceCounting());
+}
+
+} // namespace gles2
+} // namespace gpu
+
+
« no previous file with comments | « gpu/command_buffer/client/share_group.cc ('k') | gpu/gpu.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698