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

Unified Diff: Source/web/tests/mocks/MockWebViewClient.h

Issue 1313013005: Add a test that we resume commits after inserting the body. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove extra incs. Created 5 years, 4 months 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/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

Powered by Google App Engine
This is Rietveld 408576698