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

Side by Side Diff: content/common/gpu/client/gpu_in_process_context_tests.cc

Issue 63253002: Rename WebKit namespace to blink (part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include <stdio.h> 5 #include <stdio.h>
6 #include <cmath> 6 #include <cmath>
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "content/public/test/unittest_test_suite.h" 10 #include "content/public/test/unittest_test_suite.h"
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 #include "ui/gl/gl_surface.h" 12 #include "ui/gl/gl_surface.h"
13 #include "webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl. h" 13 #include "webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl. h"
14 14
15 namespace { 15 namespace {
16 16
17 using webkit::gpu::WebGraphicsContext3DInProcessCommandBufferImpl; 17 using webkit::gpu::WebGraphicsContext3DInProcessCommandBufferImpl;
18 18
19 class ContextTestBase : public testing::Test { 19 class ContextTestBase : public testing::Test {
20 public: 20 public:
21 virtual void SetUp() { 21 virtual void SetUp() {
22 WebKit::WebGraphicsContext3D::Attributes attributes; 22 blink::WebGraphicsContext3D::Attributes attributes;
23 context_ = WebGraphicsContext3DInProcessCommandBufferImpl:: 23 context_ = WebGraphicsContext3DInProcessCommandBufferImpl::
24 CreateOffscreenContext(attributes); 24 CreateOffscreenContext(attributes);
25 context_->makeContextCurrent(); 25 context_->makeContextCurrent();
26 context_support_ = context_->GetContextSupport(); 26 context_support_ = context_->GetContextSupport();
27 } 27 }
28 28
29 virtual void TearDown() { 29 virtual void TearDown() {
30 context_.reset(NULL); 30 context_.reset(NULL);
31 } 31 }
32 32
33 protected: 33 protected:
34 scoped_ptr<WebGraphicsContext3DInProcessCommandBufferImpl> context_; 34 scoped_ptr<WebGraphicsContext3DInProcessCommandBufferImpl> context_;
35 gpu::ContextSupport* context_support_; 35 gpu::ContextSupport* context_support_;
36 }; 36 };
37 37
38 } // namespace 38 } // namespace
39 39
40 // Include the actual tests. 40 // Include the actual tests.
41 #define CONTEXT_TEST_F TEST_F 41 #define CONTEXT_TEST_F TEST_F
42 #include "content/common/gpu/client/gpu_context_tests.h" 42 #include "content/common/gpu/client/gpu_context_tests.h"
OLDNEW
« no previous file with comments | « content/common/gpu/client/gpu_context_tests.h ('k') | content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698