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

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

Issue 12848005: [chromedriver] Separate stuff of chrome from chromedriver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments and fix compile error on mac. 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/test/chromedriver/stub_devtools_client.h"
6
7 #include "base/values.h"
8 #include "chrome/test/chromedriver/status.h"
9
10 StubDevToolsClient::StubDevToolsClient() {}
11
12 StubDevToolsClient::~StubDevToolsClient() {}
13
14 Status StubDevToolsClient::ConnectIfNecessary() {
15 return Status(kOk);
16 }
17
18 Status StubDevToolsClient::SendCommand(const std::string& method,
19 const base::DictionaryValue& params) {
20 scoped_ptr<base::DictionaryValue> result;
21 return SendCommandAndGetResult(method, params, &result);
22 }
23
24 Status StubDevToolsClient::SendCommandAndGetResult(
25 const std::string& method,
26 const base::DictionaryValue& params,
27 scoped_ptr<base::DictionaryValue>* result) {
28 result->reset(new base::DictionaryValue());
29 return Status(kOk);
30 }
31
32 void StubDevToolsClient::AddListener(DevToolsEventListener* listener) {
33 listeners_.push_back(listener);
34 }
35
36 Status StubDevToolsClient::HandleEventsUntil(
37 const ConditionalFunc& conditional_func) {
38 return Status(kOk);
39 }
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