summaryrefslogtreecommitdiffstats
path: root/cc/scoped_texture_unittest.cc
diff options
context:
space:
mode:
authorenne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-19 21:22:42 +0000
committerenne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-19 21:22:42 +0000
commitc753e25a8b4366c44134a8c21b9ed3392bf48608 (patch)
treef378c8a762caccf60856a1670ae33dfd638b9453 /cc/scoped_texture_unittest.cc
parent503160f80568f024fa712e280bb1a4e1e6ca1ec3 (diff)
downloadchromium_src-c753e25a8b4366c44134a8c21b9ed3392bf48608.zip
chromium_src-c753e25a8b4366c44134a8c21b9ed3392bf48608.tar.gz
chromium_src-c753e25a8b4366c44134a8c21b9ed3392bf48608.tar.bz2
Revert "cc: Rename cc classes and members to match filenames"
This reverts commit 184fac5add06d5f4670fa6be4a4d3b39232d51bb. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163059 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/scoped_texture_unittest.cc')
-rw-r--r--cc/scoped_texture_unittest.cc42
1 files changed, 21 insertions, 21 deletions
diff --git a/cc/scoped_texture_unittest.cc b/cc/scoped_texture_unittest.cc
index ebd31a3..27c62c1 100644
--- a/cc/scoped_texture_unittest.cc
+++ b/cc/scoped_texture_unittest.cc
@@ -19,12 +19,12 @@ using namespace WebKitTests;
namespace {
-TEST(ScopedTextureTest, NewScopedTexture)
+TEST(CCScopedTextureTest, NewScopedTexture)
{
- scoped_ptr<GraphicsContext> context(createFakeGraphicsContext());
+ scoped_ptr<CCGraphicsContext> context(createFakeCCGraphicsContext());
DebugScopedSetImplThread implThread;
- scoped_ptr<ResourceProvider> resourceProvider(ResourceProvider::create(context.get()));
- scoped_ptr<ScopedTexture> texture = ScopedTexture::create(resourceProvider.get());
+ scoped_ptr<CCResourceProvider> resourceProvider(CCResourceProvider::create(context.get()));
+ scoped_ptr<CCScopedTexture> texture = CCScopedTexture::create(resourceProvider.get());
// New scoped textures do not hold a texture yet.
EXPECT_EQ(0u, texture->id());
@@ -34,13 +34,13 @@ TEST(ScopedTextureTest, NewScopedTexture)
EXPECT_EQ(0u, texture->bytes());
}
-TEST(ScopedTextureTest, CreateScopedTexture)
+TEST(CCScopedTextureTest, CreateScopedTexture)
{
- scoped_ptr<GraphicsContext> context(createFakeGraphicsContext());
+ scoped_ptr<CCGraphicsContext> context(createFakeCCGraphicsContext());
DebugScopedSetImplThread implThread;
- scoped_ptr<ResourceProvider> resourceProvider(ResourceProvider::create(context.get()));
- scoped_ptr<ScopedTexture> texture = ScopedTexture::create(resourceProvider.get());
- texture->allocate(Renderer::ImplPool, IntSize(30, 30), GL_RGBA, ResourceProvider::TextureUsageAny);
+ scoped_ptr<CCResourceProvider> resourceProvider(CCResourceProvider::create(context.get()));
+ scoped_ptr<CCScopedTexture> texture = CCScopedTexture::create(resourceProvider.get());
+ texture->allocate(CCRenderer::ImplPool, IntSize(30, 30), GL_RGBA, CCResourceProvider::TextureUsageAny);
// The texture has an allocated byte-size now.
size_t expectedBytes = 30 * 30 * 4;
@@ -51,17 +51,17 @@ TEST(ScopedTextureTest, CreateScopedTexture)
EXPECT_EQ(IntSize(30, 30), texture->size());
}
-TEST(ScopedTextureTest, ScopedTextureIsDeleted)
+TEST(CCScopedTextureTest, ScopedTextureIsDeleted)
{
- scoped_ptr<GraphicsContext> context(createFakeGraphicsContext());
+ scoped_ptr<CCGraphicsContext> context(createFakeCCGraphicsContext());
DebugScopedSetImplThread implThread;
- scoped_ptr<ResourceProvider> resourceProvider(ResourceProvider::create(context.get()));
+ scoped_ptr<CCResourceProvider> resourceProvider(CCResourceProvider::create(context.get()));
{
- scoped_ptr<ScopedTexture> texture = ScopedTexture::create(resourceProvider.get());
+ scoped_ptr<CCScopedTexture> texture = CCScopedTexture::create(resourceProvider.get());
EXPECT_EQ(0u, resourceProvider->numResources());
- texture->allocate(Renderer::ImplPool, IntSize(30, 30), GL_RGBA, ResourceProvider::TextureUsageAny);
+ texture->allocate(CCRenderer::ImplPool, IntSize(30, 30), GL_RGBA, CCResourceProvider::TextureUsageAny);
EXPECT_LT(0u, texture->id());
EXPECT_EQ(1u, resourceProvider->numResources());
}
@@ -69,9 +69,9 @@ TEST(ScopedTextureTest, ScopedTextureIsDeleted)
EXPECT_EQ(0u, resourceProvider->numResources());
{
- scoped_ptr<ScopedTexture> texture = ScopedTexture::create(resourceProvider.get());
+ scoped_ptr<CCScopedTexture> texture = CCScopedTexture::create(resourceProvider.get());
EXPECT_EQ(0u, resourceProvider->numResources());
- texture->allocate(Renderer::ImplPool, IntSize(30, 30), GL_RGBA, ResourceProvider::TextureUsageAny);
+ texture->allocate(CCRenderer::ImplPool, IntSize(30, 30), GL_RGBA, CCResourceProvider::TextureUsageAny);
EXPECT_LT(0u, texture->id());
EXPECT_EQ(1u, resourceProvider->numResources());
texture->free();
@@ -79,17 +79,17 @@ TEST(ScopedTextureTest, ScopedTextureIsDeleted)
}
}
-TEST(ScopedTextureTest, LeakScopedTexture)
+TEST(CCScopedTextureTest, LeakScopedTexture)
{
- scoped_ptr<GraphicsContext> context(createFakeGraphicsContext());
+ scoped_ptr<CCGraphicsContext> context(createFakeCCGraphicsContext());
DebugScopedSetImplThread implThread;
- scoped_ptr<ResourceProvider> resourceProvider(ResourceProvider::create(context.get()));
+ scoped_ptr<CCResourceProvider> resourceProvider(CCResourceProvider::create(context.get()));
{
- scoped_ptr<ScopedTexture> texture = ScopedTexture::create(resourceProvider.get());
+ scoped_ptr<CCScopedTexture> texture = CCScopedTexture::create(resourceProvider.get());
EXPECT_EQ(0u, resourceProvider->numResources());
- texture->allocate(Renderer::ImplPool, IntSize(30, 30), GL_RGBA, ResourceProvider::TextureUsageAny);
+ texture->allocate(CCRenderer::ImplPool, IntSize(30, 30), GL_RGBA, CCResourceProvider::TextureUsageAny);
EXPECT_LT(0u, texture->id());
EXPECT_EQ(1u, resourceProvider->numResources());