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

Unified Diff: content/common/gpu/client/gpu_in_process_context_tests.cc

Issue 17904008: Fixing gpu_ipc_browsertests.cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: mac fix Created 7 years, 6 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 | « content/common/gpu/client/gpu_context_tests.h ('k') | content/content_tests.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/client/gpu_in_process_context_tests.cc
diff --git a/content/common/gpu/client/gpu_in_process_context_tests.cc b/content/common/gpu/client/gpu_in_process_context_tests.cc
new file mode 100644
index 0000000000000000000000000000000000000000..f5171c17f988f4103e0d498b292ebaf69fca2468
--- /dev/null
+++ b/content/common/gpu/client/gpu_in_process_context_tests.cc
@@ -0,0 +1,38 @@
+// 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.
+
+#include <stdio.h>
+#include <cmath>
+#include <string>
+#include <vector>
+
+#include "content/public/test/unittest_test_suite.h"
+#include "testing/gtest/include/gtest/gtest.h"
+#include "ui/gl/gl_surface.h"
+#include "webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h"
+
+namespace {
+
+class ContextTestBase : public testing::Test {
+ public:
+ virtual void SetUp() {
+ WebKit::WebGraphicsContext3D::Attributes attributes;
+ context_ = webkit::gpu::WebGraphicsContext3DInProcessCommandBufferImpl::
+ CreateOffscreenContext(attributes);
+ context_->makeContextCurrent();
+ }
+
+ virtual void TearDown() {
+ context_.reset(NULL);
+ }
+
+ protected:
+ scoped_ptr<WebKit::WebGraphicsContext3D> context_;
+};
+
+} // namespace
+
+// Include the actual tests.
+#define CONTEXT_TEST_F TEST_F
+#include "content/common/gpu/client/gpu_context_tests.h"
« no previous file with comments | « content/common/gpu/client/gpu_context_tests.h ('k') | content/content_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698