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

Side by Side Diff: chrome/test/automation/proxy_launcher.cc

Issue 8341052: share all the needed linux code with OpenBSD in chrome and content (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: wrap long lines Created 9 years, 1 month 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
« no previous file with comments | « chrome/renderer/nacl_desc_wrapper_chrome.cc ('k') | chrome/test/ui/ui_layout_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/test/automation/proxy_launcher.h" 5 #include "chrome/test/automation/proxy_launcher.h"
6 6
7 #include "base/environment.h" 7 #include "base/environment.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/string_number_conversions.h" 9 #include "base/string_number_conversions.h"
10 #include "base/string_split.h" 10 #include "base/string_split.h"
(...skipping 11 matching lines...) Expand all
22 #include "chrome/test/base/chrome_process_util.h" 22 #include "chrome/test/base/chrome_process_util.h"
23 #include "chrome/test/base/test_launcher_utils.h" 23 #include "chrome/test/base/test_launcher_utils.h"
24 #include "chrome/test/base/test_switches.h" 24 #include "chrome/test/base/test_switches.h"
25 #include "chrome/test/ui/ui_test.h" 25 #include "chrome/test/ui/ui_test.h"
26 #include "content/common/child_process_info.h" 26 #include "content/common/child_process_info.h"
27 #include "content/common/debug_flags.h" 27 #include "content/common/debug_flags.h"
28 #include "ipc/ipc_channel.h" 28 #include "ipc/ipc_channel.h"
29 #include "ipc/ipc_descriptors.h" 29 #include "ipc/ipc_descriptors.h"
30 #include "sql/connection.h" 30 #include "sql/connection.h"
31 31
32 #if defined(OS_POSIX)
33 #include <signal.h>
34 #endif
35
32 namespace { 36 namespace {
33 37
34 // Passed as value of kTestType. 38 // Passed as value of kTestType.
35 const char kUITestType[] = "ui"; 39 const char kUITestType[] = "ui";
36 40
37 // We want to have a current history database when we start the browser so 41 // We want to have a current history database when we start the browser so
38 // things like the NTP will have thumbnails. This method updates the dates 42 // things like the NTP will have thumbnails. This method updates the dates
39 // in the history to be more recent. 43 // in the history to be more recent.
40 void UpdateHistoryDates(const FilePath& user_data_dir) { 44 void UpdateHistoryDates(const FilePath& user_data_dir) {
41 // Migrate the times in the segment_usage table to yesterday so we get 45 // Migrate the times in the segment_usage table to yesterday so we get
(...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 return LaunchBrowserAndServer(state, wait_for_initial_loads); 599 return LaunchBrowserAndServer(state, wait_for_initial_loads);
596 } 600 }
597 601
598 void AnonymousProxyLauncher::TerminateConnection() { 602 void AnonymousProxyLauncher::TerminateConnection() {
599 CloseBrowserAndServer(); 603 CloseBrowserAndServer();
600 } 604 }
601 605
602 std::string AnonymousProxyLauncher::PrefixedChannelID() const { 606 std::string AnonymousProxyLauncher::PrefixedChannelID() const {
603 return channel_id_; 607 return channel_id_;
604 } 608 }
OLDNEW
« no previous file with comments | « chrome/renderer/nacl_desc_wrapper_chrome.cc ('k') | chrome/test/ui/ui_layout_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698