summaryrefslogtreecommitdiffstats
path: root/chrome/test/live_sync
diff options
context:
space:
mode:
authorrsimha@chromium.org <rsimha@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-03 07:39:41 +0000
committerrsimha@chromium.org <rsimha@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-03 07:39:41 +0000
commit4f7932d12b718e60ca791fed84b0bd4639b2f69b (patch)
treeb9507924c0cd2c70890289357a427e5dd69f979f /chrome/test/live_sync
parentb3a9397828baf512c77d9ebab1ac3290bbd8f0d8 (diff)
downloadchromium_src-4f7932d12b718e60ca791fed84b0bd4639b2f69b.zip
chromium_src-4f7932d12b718e60ca791fed84b0bd4639b2f69b.tar.gz
chromium_src-4f7932d12b718e60ca791fed84b0bd4639b2f69b.tar.bz2
Revert 51595 - Incorporating feedback from C++ readability review.
This changelist includes some minor fixes suggested during a C++ readability review. There are no code logic changes -- all edits are cosmetic. Review URL on Rietveld code review tool: http://codereview.appspot.com/1737041/show Buganizer URL for readability review: http://b/issue?id=2786642 BUG=none TEST=none Review URL: http://codereview.chromium.org/2838042 TBR=rsimha@chromium.org Review URL: http://codereview.chromium.org/2823039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51596 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/live_sync')
-rw-r--r--chrome/test/live_sync/live_sync_test.cc3
-rw-r--r--chrome/test/live_sync/live_sync_test.h31
2 files changed, 17 insertions, 17 deletions
diff --git a/chrome/test/live_sync/live_sync_test.cc b/chrome/test/live_sync/live_sync_test.cc
index a7ccacb..997a9b1 100644
--- a/chrome/test/live_sync/live_sync_test.cc
+++ b/chrome/test/live_sync/live_sync_test.cc
@@ -48,7 +48,8 @@ void LiveSyncTest::TearDown() {
}
// static
-Profile* LiveSyncTest::MakeProfile(const FilePath::StringType name) {
+Profile* LiveSyncTest::MakeProfile(
+ const FilePath::StringType name) {
FilePath path;
PathService::Get(chrome::DIR_USER_DATA, &path);
return ProfileManager::CreateProfile(path.Append(name));
diff --git a/chrome/test/live_sync/live_sync_test.h b/chrome/test/live_sync/live_sync_test.h
index f51369e..71dbbdc 100644
--- a/chrome/test/live_sync/live_sync_test.h
+++ b/chrome/test/live_sync/live_sync_test.h
@@ -7,8 +7,6 @@
#include "chrome/test/in_process_browser_test.h"
-#include "base/basictypes.h"
-#include "base/scoped_ptr.h"
#include "base/scoped_vector.h"
#include "chrome/test/live_sync/profile_sync_service_test_harness.h"
#include "net/base/mock_host_resolver.h"
@@ -16,13 +14,18 @@
#include <string>
-class CommandLine;
class Profile;
+class CommandLine;
namespace net {
class ScopedDefaultHostResolverProc;
}
+namespace switches {
+extern const wchar_t kSyncUserForTest[];
+extern const wchar_t kSyncPasswordForTest[];
+}
+
// Live sync tests are allowed to run for up to 5 minutes.
const int kTestTimeoutInMS = 300000;
@@ -41,9 +44,8 @@ class LiveSyncTest : public InProcessBrowserTest {
// functionality level tests.
TWO_CLIENT,
- // Tests where three or more client profiles are synced with the server.
- // Typically, these tests create client side races and verify that sync
- // works.
+ // Tests where three client profiles are synced with the server. Typically,
+ // these tests create client side races and verify that sync works.
MULTIPLE_CLIENT,
// Tests where several client profiles are synced with the server. Only used
@@ -87,22 +89,22 @@ class LiveSyncTest : public InProcessBrowserTest {
// Brings down local python test server if one was created.
virtual void TearDown();
- // Appends command line flag to enable sync.
+ // Append command line flag to enable sync.
virtual void SetUpCommandLine(CommandLine* command_line) {}
+ // Helper to ProfileManager::CreateProfile that handles path creation.
+ static Profile* MakeProfile(const FilePath::StringType name);
+
// Used to get the number of sync clients used by a test.
int num_clients() { return num_clients_; }
- // Returns a pointer to a particular sync profile. Callee owns the object
- // and manages its lifetime.
+ // Used to access a particular sync profile.
Profile* GetProfile(int index);
- // Returns a pointer to a particular sync client. Callee owns the object
- // and manages its lifetime.
+ // Used to access a particular sync client.
ProfileSyncServiceTestHarness* GetClient(int index);
- // Returns a pointer to the sync profile that is used to verify changes to
- // individual sync profiles. Callee owns the object and manages its lifetime.
+ // Used to verify changes to individual sync profiles.
Profile* verifier();
// Initializes sync clients and profiles but does not sync any of them.
@@ -131,9 +133,6 @@ class LiveSyncTest : public InProcessBrowserTest {
std::string password_;
private:
- // Helper to ProfileManager::CreateProfile that handles path creation.
- static Profile* MakeProfile(const FilePath::StringType name);
-
// Helper method used to create a local python test server.
virtual void SetUpLocalTestServer();