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

Unified Diff: components/test_runner/web_test_proxy.cc

Issue 1169493003: Turn test runner library into an actual component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates Created 5 years, 6 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
« no previous file with comments | « components/test_runner/web_test_proxy.h ('k') | components/test_runner/web_test_runner.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/test_runner/web_test_proxy.cc
diff --git a/components/test_runner/web_test_proxy.cc b/components/test_runner/web_test_proxy.cc
index b021480cbdd229930586915fa765c57514e657a6..766459d30835f462fe8612710ce9bcaba15d8a72 100644
--- a/components/test_runner/web_test_proxy.cc
+++ b/components/test_runner/web_test_proxy.cc
@@ -379,7 +379,8 @@ std::string DumpAllBackForwardLists(TestInterfaces* interfaces,
}
WebTestProxyBase::WebTestProxyBase()
- : test_interfaces_(NULL),
+ : web_test_interfaces_(NULL),
+ test_interfaces_(NULL),
delegate_(NULL),
web_widget_(NULL),
spellcheck_(new SpellCheckClient(this)),
@@ -392,10 +393,15 @@ WebTestProxyBase::~WebTestProxyBase() {
}
void WebTestProxyBase::SetInterfaces(WebTestInterfaces* interfaces) {
+ web_test_interfaces_ = interfaces;
test_interfaces_ = interfaces->GetTestInterfaces();
test_interfaces_->WindowOpened(this);
}
+WebTestInterfaces* WebTestProxyBase::GetInterfaces() {
+ return web_test_interfaces_;
+}
+
void WebTestProxyBase::SetDelegate(WebTestDelegate* delegate) {
delegate_ = delegate;
spellcheck_->SetDelegate(delegate);
@@ -403,6 +409,10 @@ void WebTestProxyBase::SetDelegate(WebTestDelegate* delegate) {
speech_recognizer_->SetDelegate(delegate);
}
+WebTestDelegate* WebTestProxyBase::GetDelegate() {
+ return delegate_;
+}
+
blink::WebView* WebTestProxyBase::GetWebView() const {
DCHECK(web_widget_);
// TestRunner does not support popup widgets. So |web_widget|_ is always a
« no previous file with comments | « components/test_runner/web_test_proxy.h ('k') | components/test_runner/web_test_runner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698