forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[chromedriver] Add useExistingBrowser capability for connecting to ex…
…isting instance of Chrome. Capability is expected to formatted as hostname:port, but hostname is ignored for now. BUG=205 R=kkania@chromium.org Review URL: https://codereview.chromium.org/23267004 Patch from Binod Pant <binod.pant@mathworks.com>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@219619 0039d316-1c4b-4281-b951-d872f2087c98
- Loading branch information
kkania@chromium.org
committed
Aug 26, 2013
1 parent
c3eb117
commit af898a5
Showing
10 changed files
with
191 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// Copyright (c) 2013 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#include "chrome/test/chromedriver/chrome/chrome_existing_impl.h" | ||
#include "chrome/test/chromedriver/chrome/devtools_http_client.h" | ||
#include "chrome/test/chromedriver/chrome/status.h" | ||
|
||
ChromeExistingImpl::ChromeExistingImpl( | ||
scoped_ptr<DevToolsHttpClient> client, | ||
ScopedVector<DevToolsEventListener>& devtools_event_listeners, | ||
Log* log) | ||
: ChromeImpl(client.Pass(), devtools_event_listeners, log) {} | ||
|
||
ChromeExistingImpl::~ChromeExistingImpl() {} | ||
|
||
std::string ChromeExistingImpl::GetOperatingSystemName() { | ||
return std::string(); | ||
} | ||
|
||
Status ChromeExistingImpl::Quit() { | ||
return Status(kOk); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Copyright (c) 2013 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#ifndef CHROME_TEST_CHROMEDRIVER_CHROME_CHROME_EXISTING_IMPL_H_ | ||
#define CHROME_TEST_CHROMEDRIVER_CHROME_CHROME_EXISTING_IMPL_H_ | ||
|
||
#include <string> | ||
|
||
#include "base/compiler_specific.h" | ||
#include "base/memory/scoped_ptr.h" | ||
#include "chrome/test/chromedriver/chrome/chrome_impl.h" | ||
|
||
class DevToolsHttpClient; | ||
|
||
class ChromeExistingImpl : public ChromeImpl { | ||
public: | ||
ChromeExistingImpl( | ||
scoped_ptr<DevToolsHttpClient> client, | ||
ScopedVector<DevToolsEventListener>& devtools_event_listeners, | ||
Log* log); | ||
virtual ~ChromeExistingImpl(); | ||
|
||
// Overridden from Chrome. | ||
virtual std::string GetOperatingSystemName() OVERRIDE; | ||
virtual Status Quit() OVERRIDE; | ||
}; | ||
|
||
#endif // CHROME_TEST_CHROMEDRIVER_CHROME_CHROME_EXISTING_IMPL_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters