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

Unified Diff: cc/test/fake_web_graphics_context_3d_unittest.cc

Issue 46163003: Consolidate test contexts and remove unused ones (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/output/gl_renderer_unittest.cc ('k') | cc/test/test_web_graphics_context_3d.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_web_graphics_context_3d_unittest.cc
diff --git a/cc/test/fake_web_graphics_context_3d_unittest.cc b/cc/test/fake_web_graphics_context_3d_unittest.cc
deleted file mode 100644
index 3d119eeb03f95c5b441a76b8f8baccf1422e617e..0000000000000000000000000000000000000000
--- a/cc/test/fake_web_graphics_context_3d_unittest.cc
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "base/compiler_specific.h"
-#include "base/memory/scoped_ptr.h"
-#include "cc/test/test_web_graphics_context_3d.h"
-#include "testing/gmock/include/gmock/gmock.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace cc {
-namespace {
-
-class ContextThatCountsMakeCurrents : public FakeWebGraphicsContext3D {
- public:
- ContextThatCountsMakeCurrents() : make_current_count_(0) {}
-
- // WebKit::WebGraphicsContext3D implementation.
- virtual bool makeContextCurrent() OVERRIDE {
- make_current_count_++;
- return true;
- }
-
- int make_current_count() const { return make_current_count_; }
-
- private:
- int make_current_count_;
-};
-
-TEST(FakeWebGraphicsContext3DTest, CreationShouldNotMakeCurrent) {
- scoped_ptr<ContextThatCountsMakeCurrents> context(
- new ContextThatCountsMakeCurrents);
- EXPECT_TRUE(context.get());
- EXPECT_EQ(0, context->make_current_count());
-}
-
-} // namespace
-} // namespace cc
« no previous file with comments | « cc/output/gl_renderer_unittest.cc ('k') | cc/test/test_web_graphics_context_3d.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698