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

Unified Diff: cc/content_layer_unittest.cc

Issue 11189043: cc: Rename cc classes and members to match filenames (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 months 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
Index: cc/content_layer_unittest.cc
diff --git a/cc/content_layer_unittest.cc b/cc/content_layer_unittest.cc
index 37d66be6a0645b07b9c94d9ea210f6484f14c999..a00dde8855e48785f784578893e088c3050891f8 100644
--- a/cc/content_layer_unittest.cc
+++ b/cc/content_layer_unittest.cc
@@ -20,9 +20,9 @@ using namespace WebKit;
namespace {
-class MockContentLayerChromiumClient : public ContentLayerChromiumClient {
+class MockContentLayerClient : public ContentLayerClient {
public:
- explicit MockContentLayerChromiumClient(IntRect opaqueLayerRect)
+ explicit MockContentLayerClient(IntRect opaqueLayerRect)
: m_opaqueLayerRect(opaqueLayerRect)
{
}
@@ -36,18 +36,18 @@ private:
IntRect m_opaqueLayerRect;
};
-TEST(ContentLayerChromiumTest, ContentLayerPainterWithDeviceScale)
+TEST(ContentLayerTest, ContentLayerPainterWithDeviceScale)
{
float contentsScale = 2;
IntRect contentRect(10, 10, 100, 100);
IntRect opaqueRectInLayerSpace(5, 5, 20, 20);
IntRect opaqueRectInContentSpace = opaqueRectInLayerSpace;
opaqueRectInContentSpace.scale(contentsScale);
- MockContentLayerChromiumClient client(opaqueRectInLayerSpace);
- scoped_refptr<BitmapCanvasLayerTextureUpdater> updater = BitmapCanvasLayerTextureUpdater::create(ContentLayerPainter::create(&client).PassAs<LayerPainterChromium>());
+ MockContentLayerClient client(opaqueRectInLayerSpace);
+ scoped_refptr<BitmapCanvasLayerTextureUpdater> updater = BitmapCanvasLayerTextureUpdater::create(ContentLayerPainter::create(&client).PassAs<LayerPainter>());
IntRect resultingOpaqueRect;
- CCRenderingStats stats;
+ RenderingStats stats;
updater->prepareToUpdate(contentRect, IntSize(256, 256), contentsScale, contentsScale, resultingOpaqueRect, stats);
EXPECT_RECT_EQ(opaqueRectInContentSpace, resultingOpaqueRect);
« cc/active_animation.h ('K') | « cc/content_layer_client.h ('k') | cc/damage_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698