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

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

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 #ifndef CHROME_TEST_CHROMEDRIVER_STUB_DEVTOOLS_CLIENT_H_ 5 #ifndef CHROME_TEST_CHROMEDRIVER_STUB_DEVTOOLS_CLIENT_H_
6 #define CHROME_TEST_CHROMEDRIVER_STUB_DEVTOOLS_CLIENT_H_ 6 #define CHROME_TEST_CHROMEDRIVER_STUB_DEVTOOLS_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "chrome/test/chromedriver/devtools_client.h" 12 #include "chrome/test/chromedriver/devtools_client.h"
13 13
14 namespace base { 14 namespace base {
15 class DictionaryValue; 15 class DictionaryValue;
16 } 16 }
17 class Status; 17 class Status;
18 18
19 class StubDevToolsClient : public DevToolsClient { 19 class StubDevToolsClient : public DevToolsClient {
20 public: 20 public:
21 StubDevToolsClient(); 21 StubDevToolsClient();
22 virtual ~StubDevToolsClient(); 22 virtual ~StubDevToolsClient();
23 23
24 // Overridden from DevToolsClient: 24 // Overridden from DevToolsClient:
25 virtual Status ConnectIfNecessary() OVERRIDE;
25 virtual Status SendCommand(const std::string& method, 26 virtual Status SendCommand(const std::string& method,
26 const base::DictionaryValue& params) OVERRIDE; 27 const base::DictionaryValue& params) OVERRIDE;
27 virtual Status SendCommandAndGetResult( 28 virtual Status SendCommandAndGetResult(
28 const std::string& method, 29 const std::string& method,
29 const base::DictionaryValue& params, 30 const base::DictionaryValue& params,
30 scoped_ptr<base::DictionaryValue>* result) OVERRIDE; 31 scoped_ptr<base::DictionaryValue>* result) OVERRIDE;
31 virtual void AddListener(DevToolsEventListener* listener) OVERRIDE; 32 virtual void AddListener(DevToolsEventListener* listener) OVERRIDE;
32 virtual Status HandleEventsUntil( 33 virtual Status HandleEventsUntil(
33 const ConditionalFunc& conditional_func) OVERRIDE; 34 const ConditionalFunc& conditional_func) OVERRIDE;
34 }; 35 };
35 36
36 #endif // CHROME_TEST_CHROMEDRIVER_STUB_DEVTOOLS_CLIENT_H_ 37 #endif // CHROME_TEST_CHROMEDRIVER_STUB_DEVTOOLS_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/test/chromedriver/net/test_http_server.cc ('k') | chrome/test/chromedriver/stub_devtools_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698