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

Side by Side 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, 5 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
OLDNEW
(Empty)
1 // 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.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include <stdio.h>
6 #include <cmath>
7 #include <string>
8 #include <vector>
9
10 #include "content/public/test/unittest_test_suite.h"
11 #include "testing/gtest/include/gtest/gtest.h"
12 #include "ui/gl/gl_surface.h"
13 #include "webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl. h"
14
15 namespace {
16
17 class ContextTestBase : public testing::Test {
18 public:
19 virtual void SetUp() {
20 WebKit::WebGraphicsContext3D::Attributes attributes;
21 context_ = webkit::gpu::WebGraphicsContext3DInProcessCommandBufferImpl::
22 CreateOffscreenContext(attributes);
23 context_->makeContextCurrent();
24 }
25
26 virtual void TearDown() {
27 context_.reset(NULL);
28 }
29
30 protected:
31 scoped_ptr<WebKit::WebGraphicsContext3D> context_;
32 };
33
34 } // namespace
35
36 // Include the actual tests.
37 #define CONTEXT_TEST_F TEST_F
38 #include "content/browser/gpu/gpu_context_tests.h"
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698