| Index: Source/testing/runner/WebTestThemeEngineMock.h
|
| diff --git a/Source/testing/runner/MockWebAudioDevice.h b/Source/testing/runner/WebTestThemeEngineMock.h
|
| similarity index 74%
|
| copy from Source/testing/runner/MockWebAudioDevice.h
|
| copy to Source/testing/runner/WebTestThemeEngineMock.h
|
| index a5eee584cd3adcf5779f39171b1d89cf1a1425ee..b755a4a56a039670e3f5038b56dde36aa80c7239 100644
|
| --- a/Source/testing/runner/MockWebAudioDevice.h
|
| +++ b/Source/testing/runner/WebTestThemeEngineMock.h
|
| @@ -28,28 +28,29 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -#ifndef MockWebAudioDevice_h
|
| -#define MockWebAudioDevice_h
|
| +#ifndef WebTestThemeEngineMock_h
|
| +#define WebTestThemeEngineMock_h
|
|
|
| -#include "TestCommon.h"
|
| -#include "public/platform/WebAudioDevice.h"
|
| -#include "public/platform/WebNonCopyable.h"
|
| +#include "public/platform/WebRect.h"
|
| +#include "public/platform/default/WebThemeEngine.h"
|
| +
|
| +using blink::WebRect;
|
| +using blink::WebThemeEngine;
|
|
|
| namespace WebTestRunner {
|
|
|
| -class MockWebAudioDevice : public blink::WebAudioDevice, public blink::WebNonCopyable {
|
| +class WebTestThemeEngineMock : public blink::WebThemeEngine {
|
| public:
|
| - explicit MockWebAudioDevice(double sampleRate);
|
| - virtual ~MockWebAudioDevice();
|
| -
|
| - virtual void start();
|
| - virtual void stop();
|
| - virtual double sampleRate();
|
| -
|
| -private:
|
| - double m_sampleRate;
|
| + // WebThemeEngine methods:
|
| + virtual blink::WebSize getSize(WebThemeEngine::Part);
|
| +
|
| + virtual void paint(blink::WebCanvas*,
|
| + WebThemeEngine::Part,
|
| + WebThemeEngine::State,
|
| + const blink::WebRect&,
|
| + const WebThemeEngine::ExtraParams*);
|
| };
|
|
|
| } // namespace WebTestRunner
|
|
|
| -#endif // MockWebAudioDevice_h
|
| +#endif // WebTestThemeEngineMock_h
|
|
|