Changeset 127678 in webkit


Ignore:
Timestamp:
Sep 5, 2012 7:07:41 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[chromium] Test WebSolidColorLayer in WebLayerTest.Client unit test
https://bugs.webkit.org/show_bug.cgi?id=95819

Patch by James Robinson <jamesr@chromium.org> on 2012-09-05
Reviewed by Adam Barth.

This unit test doesn't do all that much, but it does verify that WebSolidColorLayer doesn't completely explode
upon use and also makes sure that the WebSolidColorLayer::create() symbol is referenced and not dropped from
webkit.dll in the component build.

  • tests/WebLayerTest.cpp:
Location:
trunk/Source/WebKit/chromium
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/chromium/ChangeLog

    r127675 r127678  
     12012-09-05  James Robinson  <jamesr@chromium.org>
     2
     3        [chromium] Test WebSolidColorLayer in WebLayerTest.Client unit test
     4        https://bugs.webkit.org/show_bug.cgi?id=95819
     5
     6        Reviewed by Adam Barth.
     7
     8        This unit test doesn't do all that much, but it does verify that WebSolidColorLayer doesn't completely explode
     9        upon use and also makes sure that the WebSolidColorLayer::create() symbol is referenced and not dropped from
     10        webkit.dll in the component build.
     11
     12        * tests/WebLayerTest.cpp:
     13
    1142012-09-05  Victoria Kirst  <vrk@chromium.org>
    215
  • trunk/Source/WebKit/chromium/tests/WebLayerTest.cpp

    r127605 r127678  
    4040#include <public/WebRect.h>
    4141#include <public/WebSize.h>
     42#include <public/WebSolidColorLayer.h>
    4243
    4344#include <gmock/gmock.h>
     
    141142
    142143    // Texture layer.
    143     EXPECT_CALL(m_client, scheduleComposite()).Times(AnyNumber());
     144    EXPECT_CALL(m_client, scheduleComposite()).Times(AtLeast(1));
    144145    OwnPtr<WebExternalTextureLayer> textureLayer = adoptPtr(WebExternalTextureLayer::create());
    145146    m_rootLayer->addChild(textureLayer->layer());
     
    172173    Mock::VerifyAndClearExpectations(&m_client);
    173174    EXPECT_FALSE(contentLayer->layer()->drawsContent());
     175
     176    // Solid color layer.
     177    EXPECT_CALL(m_client, scheduleComposite()).Times(AtLeast(1));
     178    OwnPtr<WebSolidColorLayer> solidColorLayer = adoptPtr(WebSolidColorLayer::create());
     179    m_rootLayer->addChild(solidColorLayer->layer());
     180    Mock::VerifyAndClearExpectations(&m_client);
     181
    174182}
    175183
Note: See TracChangeset for help on using the changeset viewer.