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

Side by Side Diff: chrome/test/live_sync/live_sync_test.cc

Issue 3034038: GTTF: Move more test server code from net/url_request/url_request_unittest.h (Closed)
Patch Set: hopefully final Created 10 years, 4 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
« no previous file with comments | « chrome/test/interactive_ui/infobars_uitest.cc ('k') | chrome/test/ui/ppapi_uitest.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/live_sync/live_sync_test.h" 5 #include "chrome/test/live_sync/live_sync_test.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/path_service.h"
10 #include "base/string_util.h" 11 #include "base/string_util.h"
11 #include "chrome/browser/profile.h" 12 #include "chrome/browser/profile.h"
12 #include "chrome/browser/profile_manager.h" 13 #include "chrome/browser/profile_manager.h"
13 #include "chrome/common/chrome_paths.h" 14 #include "chrome/common/chrome_paths.h"
14 #include "chrome/common/chrome_switches.h" 15 #include "chrome/common/chrome_switches.h"
15 16
16 namespace switches { 17 namespace switches {
17 const std::string kPasswordFileForTest = "password-file-for-test"; 18 const std::string kPasswordFileForTest = "password-file-for-test";
18 const std::string kSyncUserForTest = "sync-user-for-test"; 19 const std::string kSyncUserForTest = "sync-user-for-test";
19 const std::string kSyncPasswordForTest = "sync-password-for-test"; 20 const std::string kSyncPasswordForTest = "sync-password-for-test";
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 CommandLine* cl = CommandLine::ForCurrentProcess(); 185 CommandLine* cl = CommandLine::ForCurrentProcess();
185 cl->AppendSwitchWithValue(switches::kSyncServiceURL, 186 cl->AppendSwitchWithValue(switches::kSyncServiceURL,
186 StringPrintf("http://%s:%d/chromiumsync", server_.kHostName, 187 StringPrintf("http://%s:%d/chromiumsync", server_.kHostName,
187 server_.kOKHTTPSPort)); 188 server_.kOKHTTPSPort));
188 } 189 }
189 190
190 void LiveSyncTest::TearDownLocalTestServer() { 191 void LiveSyncTest::TearDownLocalTestServer() {
191 bool success = server_.Stop(); 192 bool success = server_.Stop();
192 ASSERT_TRUE(success); 193 ASSERT_TRUE(success);
193 } 194 }
OLDNEW
« no previous file with comments | « chrome/test/interactive_ui/infobars_uitest.cc ('k') | chrome/test/ui/ppapi_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698