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

Side by Side Diff: chrome/test/chromedriver/stub_devtools_client.cc

Issue 12321057: [chromedriver] Implement reconnection to DevTools. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nits. Created 7 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/test/chromedriver/stub_devtools_client.h" 5 #include "chrome/test/chromedriver/stub_devtools_client.h"
6 6
7 #include "base/values.h" 7 #include "base/values.h"
8 #include "chrome/test/chromedriver/status.h" 8 #include "chrome/test/chromedriver/status.h"
9 9
10 StubDevToolsClient::StubDevToolsClient() {} 10 StubDevToolsClient::StubDevToolsClient() {}
11 11
12 StubDevToolsClient::~StubDevToolsClient() {} 12 StubDevToolsClient::~StubDevToolsClient() {}
13 13
14 Status StubDevToolsClient::ConnectIfNecessary() {
15 return Status(kOk);
16 }
17
14 Status StubDevToolsClient::SendCommand(const std::string& method, 18 Status StubDevToolsClient::SendCommand(const std::string& method,
15 const base::DictionaryValue& params) { 19 const base::DictionaryValue& params) {
16 scoped_ptr<base::DictionaryValue> result; 20 scoped_ptr<base::DictionaryValue> result;
17 return SendCommandAndGetResult(method, params, &result); 21 return SendCommandAndGetResult(method, params, &result);
18 } 22 }
19 23
20 Status StubDevToolsClient::SendCommandAndGetResult( 24 Status StubDevToolsClient::SendCommandAndGetResult(
21 const std::string& method, 25 const std::string& method,
22 const base::DictionaryValue& params, 26 const base::DictionaryValue& params,
23 scoped_ptr<base::DictionaryValue>* result) { 27 scoped_ptr<base::DictionaryValue>* result) {
24 return Status(kOk); 28 return Status(kOk);
25 } 29 }
26 30
27 void StubDevToolsClient::AddListener(DevToolsEventListener* listener) {} 31 void StubDevToolsClient::AddListener(DevToolsEventListener* listener) {}
28 32
29 Status StubDevToolsClient::HandleEventsUntil( 33 Status StubDevToolsClient::HandleEventsUntil(
30 const ConditionalFunc& conditional_func) { 34 const ConditionalFunc& conditional_func) {
31 return Status(kOk); 35 return Status(kOk);
32 } 36 }
OLDNEW
« no previous file with comments | « chrome/test/chromedriver/stub_devtools_client.h ('k') | chrome/test/chromedriver/stub_web_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698