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

Side by Side Diff: chrome/test/chromedriver/stub_web_view.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 "base/values.h" 5 #include "base/values.h"
6 #include "chrome/test/chromedriver/status.h" 6 #include "chrome/test/chromedriver/status.h"
7 #include "chrome/test/chromedriver/stub_web_view.h" 7 #include "chrome/test/chromedriver/stub_web_view.h"
8 #include "chrome/test/chromedriver/ui_events.h" 8 #include "chrome/test/chromedriver/ui_events.h"
9 9
10 StubWebView::StubWebView(const std::string& id) : id_(id) {} 10 StubWebView::StubWebView(const std::string& id) : id_(id) {}
11 11
12 StubWebView::~StubWebView() {} 12 StubWebView::~StubWebView() {}
13 13
14 std::string StubWebView::GetId() { 14 std::string StubWebView::GetId() {
15 return id_; 15 return id_;
16 } 16 }
17 17
18 Status StubWebView::EnsureAlive() {
19 return Status(kOk);
20 }
21
18 Status StubWebView::Close() { 22 Status StubWebView::Close() {
19 return Status(kOk); 23 return Status(kOk);
20 } 24 }
21 25
22 Status StubWebView::Load(const std::string& url) { 26 Status StubWebView::Load(const std::string& url) {
23 return Status(kOk); 27 return Status(kOk);
24 } 28 }
25 29
26 Status StubWebView::Reload() { 30 Status StubWebView::Reload() {
27 return Status(kOk); 31 return Status(kOk);
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 return Status(kOk); 63 return Status(kOk);
60 } 64 }
61 65
62 Status StubWebView::GetMainFrame(std::string* frame_id) { 66 Status StubWebView::GetMainFrame(std::string* frame_id) {
63 return Status(kOk); 67 return Status(kOk);
64 } 68 }
65 69
66 JavaScriptDialogManager* StubWebView::GetJavaScriptDialogManager() { 70 JavaScriptDialogManager* StubWebView::GetJavaScriptDialogManager() {
67 return NULL; 71 return NULL;
68 } 72 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698