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

Unified Diff: content/shell/renderer/test_runner/web_test_proxy.cc

Issue 907893002: Retry to add MockPresentationClient to use in layout tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Split Presentation API mock into per-frame and per-view objects Created 5 years, 10 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: content/shell/renderer/test_runner/web_test_proxy.cc
diff --git a/content/shell/renderer/test_runner/web_test_proxy.cc b/content/shell/renderer/test_runner/web_test_proxy.cc
index da62fc05f003e2c24df25866a0e3c31f7676eddf..c64d954ef96c0531d94d88e98d95d32252a449b3 100644
--- a/content/shell/renderer/test_runner/web_test_proxy.cc
+++ b/content/shell/renderer/test_runner/web_test_proxy.cc
@@ -18,6 +18,7 @@
#include "content/shell/renderer/test_runner/event_sender.h"
#include "content/shell/renderer/test_runner/mock_color_chooser.h"
#include "content/shell/renderer/test_runner/mock_credential_manager_client.h"
+#include "content/shell/renderer/test_runner/mock_presentation_service.h"
#include "content/shell/renderer/test_runner/mock_screen_orientation_client.h"
#include "content/shell/renderer/test_runner/mock_web_speech_recognizer.h"
#include "content/shell/renderer/test_runner/mock_web_user_media_client.h"
@@ -652,6 +653,12 @@ WebTestProxyBase::GetCredentialManagerClientMock() {
return credential_manager_client_.get();
}
+MockPresentationService* WebTestProxyBase::GetPresentationServiceMock() {
+ if (!presentation_service_.get())
+ presentation_service_.reset(new MockPresentationService());
+ return presentation_service_.get();
+}
+
void WebTestProxyBase::ScheduleAnimation() {
if (!test_interfaces_->GetTestRunner()->TestIsRunning())
return;

Powered by Google App Engine
This is Rietveld 408576698