Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef MockWebViewClient_h | |
| 6 #define MockWebViewClient_h | |
| 7 | |
| 8 #include "web/tests/FrameTestHelpers.h" | |
| 9 | |
| 10 namespace blink { | |
| 11 | |
| 12 class WebLayerTreeView; | |
| 13 | |
| 14 class MockWebViewClient final : public FrameTestHelpers::TestWebViewClient { | |
| 15 public: | |
| 16 explicit MockWebViewClient(WebLayerTreeView&); | |
| 17 | |
| 18 WebLayerTreeView* layerTreeView() override { return m_layerTreeView; } | |
| 19 | |
| 20 // 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.
| |
| 21 // parsing of the html. | |
| 22 bool disableThreadedParsingForUnitTests() const override { return true; } | |
| 23 | |
| 24 private: | |
| 25 WebLayerTreeView* m_layerTreeView; | |
| 26 }; | |
| 27 | |
| 28 } // namespace blink | |
| 29 | |
| 30 #endif | |
| OLD | NEW |