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