Index: Source/web/tests/mocks/MockWebViewClient.h |
diff --git a/Source/web/tests/mocks/MockWebViewClient.h b/Source/web/tests/mocks/MockWebViewClient.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..41ee6082a50dc4a40e181e8e10d27c6fde59955a |
--- /dev/null |
+++ b/Source/web/tests/mocks/MockWebViewClient.h |
@@ -0,0 +1,30 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef MockWebViewClient_h |
+#define MockWebViewClient_h |
+ |
+#include "web/tests/FrameTestHelpers.h" |
+ |
+namespace blink { |
+ |
+class WebLayerTreeView; |
+ |
+class MockWebViewClient final : public FrameTestHelpers::TestWebViewClient { |
+public: |
+ explicit MockWebViewClient(WebLayerTreeView&); |
+ |
+ WebLayerTreeView* layerTreeView() override { return m_layerTreeView; } |
+ |
+ // Disable threaded scrolling so writing to a MockRequest causes sync |
dcheng
2015/08/27 23:10:22
s/scrolling/parsing
esprehn
2015/08/28 08:31:43
Done.
|
+ // parsing of the html. |
+ bool disableThreadedParsingForUnitTests() const override { return true; } |
+ |
+private: |
+ WebLayerTreeView* m_layerTreeView; |
+}; |
+ |
+} // namespace blink |
+ |
+#endif |