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

Unified Diff: chrome/test/automation/proxy_launcher.cc

Issue 5707006: Revert "Add named testing interface." (Closed)
Patch Set: Created 10 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/automation/proxy_launcher.h ('k') | chrome/test/ui/named_interface_uitest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/automation/proxy_launcher.cc
diff --git a/chrome/test/automation/proxy_launcher.cc b/chrome/test/automation/proxy_launcher.cc
deleted file mode 100644
index 2325958b618122a74ce6209f5541e6f69ae4a5c2..0000000000000000000000000000000000000000
--- a/chrome/test/automation/proxy_launcher.cc
+++ /dev/null
@@ -1,75 +0,0 @@
-// Copyright (c) 2010 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/automation/proxy_launcher.h"
-
-#include "chrome/common/automation_constants.h"
-#include "chrome/common/logging_chrome.h"
-#include "chrome/test/automation/automation_proxy.h"
-#include "chrome/test/ui/ui_test.h"
-
-// Default path of named testing interface.
-static const char kInterfacePath[] = "/var/tmp/ChromeTestingInterface";
-
-// NamedProxyLauncher functions
-
-NamedProxyLauncher::NamedProxyLauncher(bool launch_browser,
- bool disconnect_on_failure)
- : launch_browser_(launch_browser),
- disconnect_on_failure_(disconnect_on_failure) {
- channel_id_ = kInterfacePath;
-}
-
-AutomationProxy* NamedProxyLauncher::CreateAutomationProxy(
- int execution_timeout) {
- AutomationProxy* proxy = new AutomationProxy(execution_timeout,
- disconnect_on_failure_);
- proxy->InitializeChannel(channel_id_, true);
- return proxy;
-}
-
-void NamedProxyLauncher::InitializeConnection(UITestBase* ui_test_base) const {
- if (launch_browser_) {
- // Set up IPC testing interface as a client.
- ui_test_base->LaunchBrowser();
-
- // Wait for browser to be ready for connections.
- struct stat file_info;
- while (stat(kInterfacePath, &file_info))
- PlatformThread::Sleep(automation::kSleepTime);
- }
-
- ui_test_base->ConnectToRunningBrowser();
-}
-
-std::string NamedProxyLauncher::PrefixedChannelID() const {
- std::string channel_id;
- channel_id.append(automation::kNamedInterfacePrefix).append(channel_id_);
- return channel_id;
-}
-
-// AnonymousProxyLauncher functions
-
-AnonymousProxyLauncher::AnonymousProxyLauncher(bool disconnect_on_failure)
- : disconnect_on_failure_(disconnect_on_failure) {
- channel_id_ = AutomationProxy::GenerateChannelID();
-}
-
-AutomationProxy* AnonymousProxyLauncher::CreateAutomationProxy(
- int execution_timeout) {
- AutomationProxy* proxy = new AutomationProxy(execution_timeout,
- disconnect_on_failure_);
- proxy->InitializeChannel(channel_id_, false);
- return proxy;
-}
-
-void AnonymousProxyLauncher::InitializeConnection(
- UITestBase* ui_test_base) const {
- ui_test_base->LaunchBrowserAndServer();
-}
-
-std::string AnonymousProxyLauncher::PrefixedChannelID() const {
- return channel_id_;
-}
-
« no previous file with comments | « chrome/test/automation/proxy_launcher.h ('k') | chrome/test/ui/named_interface_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698