Chromium Code Reviews| OLD | NEW |
|---|---|
| (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" | |
| OLD | NEW |