From f005593ba12f324bbfe104dacf55261f7878a191 Mon Sep 17 00:00:00 2001 From: "enne@chromium.org" Date: Sun, 24 Mar 2013 10:10:54 +0000 Subject: cc: Remove unused fake_graphics_context_3d_unittest This is the same test as fake_web_graphics_context_3d_unittest (except on TestWebGraphicsContext3D and not on its parent class FakeWebGraphicsContext3D) and also is not even included in cc_tests.gyp. R=danakj@chromium.org BUG=none Review URL: https://chromiumcodereview.appspot.com/13008022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190254 0039d316-1c4b-4281-b951-d872f2087c98 --- cc/test/fake_graphics_context_3d_unittest.cc | 37 ---------------------------- 1 file changed, 37 deletions(-) delete mode 100644 cc/test/fake_graphics_context_3d_unittest.cc (limited to 'cc/test') diff --git a/cc/test/fake_graphics_context_3d_unittest.cc b/cc/test/fake_graphics_context_3d_unittest.cc deleted file mode 100644 index f5e0c66..0000000 --- a/cc/test/fake_graphics_context_3d_unittest.cc +++ /dev/null @@ -1,37 +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 TestWebGraphicsContext3D { -public: - ContextThatCountsMakeCurrents() : m_makeCurrentCount(0) { } - virtual bool makeContextCurrent() OVERRIDE - { - m_makeCurrentCount++; - return true; - } - int makeCurrentCount() const { return m_makeCurrentCount; } - -private: - int m_makeCurrentCount; -}; - - -TEST(FakeGraphicsContext3DTest, ContextCreationShouldNotMakeCurrent) -{ - scoped_ptr context(new ContextThatCountsMakeCurrents); - EXPECT_TRUE(context.get()); - EXPECT_EQ(0, context->makeCurrentCount()); -} - -} // namespace -} // namespace cc -- cgit v1.1