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

Unified Diff: content/browser/gpu/gpu_ipc_gputests.cc

Issue 17904008: Fixing gpu_ipc_browsertests.cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: bogus merge artifact reverted 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
Index: content/browser/gpu/gpu_ipc_gputests.cc
diff --git a/content/browser/gpu/gpu_ipc_gputests.cc b/content/browser/gpu/gpu_ipc_gputests.cc
new file mode 100644
index 0000000000000000000000000000000000000000..76533d0d923c83e88e10161751d67153e1f93ef7
--- /dev/null
+++ b/content/browser/gpu/gpu_ipc_gputests.cc
@@ -0,0 +1,38 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
piman 2013/06/26 21:41:03 Nit: this test doesn't do IPCs, the file name seem
hubbe 2013/06/27 20:42:40 Done.
+// 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/browser/gpu/gpu_context_tests.h"

Powered by Google App Engine
This is Rietveld 408576698