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

Unified Diff: Source/web/tests/FrameTestHelpers.h

Issue 78963008: Moved remaining legacy viewport tests to unit tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: Source/web/tests/FrameTestHelpers.h
diff --git a/Source/web/tests/FrameTestHelpers.h b/Source/web/tests/FrameTestHelpers.h
index 9fc9dfc06a2fd6f5a58b937efe658cbdbbe68293..7dc714d1dd5450e567c57732c2be71f56cb4ced9 100644
--- a/Source/web/tests/FrameTestHelpers.h
+++ b/Source/web/tests/FrameTestHelpers.h
@@ -46,6 +46,7 @@ namespace FrameTestHelpers {
void loadFrame(WebFrame*, const std::string& url);
void runPendingTasks();
+void setViewportSettings(WebSettings*);
// Convenience class for handling the lifetime of a WebView and its associated mainframe in tests.
class WebViewHelper {
@@ -72,6 +73,23 @@ private:
WebViewImpl* m_webView;
};
+class UseMockScrollbarSettings {
+public:
+ UseMockScrollbarSettings();
+ ~UseMockScrollbarSettings();
+};
+
+class ReplaceViewportUAStylesheet {
+public:
+ ReplaceViewportUAStylesheet(WTF::String);
+ ~ReplaceViewportUAStylesheet();
+};
+
+class UseAndroidViewportUAStylesheet : public ReplaceViewportUAStylesheet {
+public:
+ UseAndroidViewportUAStylesheet();
+};
+
} // namespace FrameTestHelpers
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698