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

Side by Side Diff: Source/testing/runner/WebTestThemeEngineMock.h

Issue 41733004: Roll up patch for running layout tests under Aura. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: move useMockTheme() into a helper function Created 7 years, 1 month 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 10 matching lines...) Expand all
21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef MockWebAudioDevice_h 31 #ifndef WebTestThemeEngineMock_h
32 #define MockWebAudioDevice_h 32 #define WebTestThemeEngineMock_h
33 33
34 #include "TestCommon.h" 34 #include "public/platform/WebRect.h"
35 #include "public/platform/WebAudioDevice.h" 35 #include "public/platform/default/WebThemeEngine.h"
36 #include "public/platform/WebNonCopyable.h" 36
37 using blink::WebRect;
38 using blink::WebThemeEngine;
37 39
38 namespace WebTestRunner { 40 namespace WebTestRunner {
39 41
40 class MockWebAudioDevice : public blink::WebAudioDevice, public blink::WebNonCop yable { 42 class WebTestThemeEngineMock : public blink::WebThemeEngine {
41 public: 43 public:
42 explicit MockWebAudioDevice(double sampleRate); 44 // WebThemeEngine methods:
43 virtual ~MockWebAudioDevice(); 45 virtual blink::WebSize getSize(WebThemeEngine::Part);
44 46
45 virtual void start(); 47 virtual void paint(blink::WebCanvas*,
46 virtual void stop(); 48 WebThemeEngine::Part,
47 virtual double sampleRate(); 49 WebThemeEngine::State,
48 50 const blink::WebRect&,
49 private: 51 const WebThemeEngine::ExtraParams*);
50 double m_sampleRate;
51 }; 52 };
52 53
53 } // namespace WebTestRunner 54 } // namespace WebTestRunner
54 55
55 #endif // MockWebAudioDevice_h 56 #endif // WebTestThemeEngineMock_h
OLDNEW
« no previous file with comments | « Source/testing/runner/TestInterfaces.cpp ('k') | Source/testing/runner/WebTestThemeEngineMock.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698