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

Side by Side Diff: chrome/browser/sync/test/integration/sync_test.h

Issue 2365763002: [Sync] Removed passphrase helper methods, removed ((n)) pattern, and fixed lint violations. (Closed)
Patch Set: Removed useless pass-through accessors. Created 4 years, 3 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_ 5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_
6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_ 6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 // FakeServer. 90 // FakeServer.
91 // TODO(pvalenzuela): Delete this value when all TWO_CLIENT_LEGACY tests are 91 // TODO(pvalenzuela): Delete this value when all TWO_CLIENT_LEGACY tests are
92 // compatible with FakeServer and switched to TWO_CLIENT. See 92 // compatible with FakeServer and switched to TWO_CLIENT. See
93 // crbug.com/323265. 93 // crbug.com/323265.
94 TWO_CLIENT_LEGACY 94 TWO_CLIENT_LEGACY
95 }; 95 };
96 96
97 // The type of server we're running against. 97 // The type of server we're running against.
98 enum ServerType { 98 enum ServerType {
99 SERVER_TYPE_UNDECIDED, 99 SERVER_TYPE_UNDECIDED,
100 LOCAL_PYTHON_SERVER, // The mock python server that runs locally and is 100 LOCAL_PYTHON_SERVER, // The mock python server that runs locally and is
101 // part of the Chromium checkout. 101 // part of the Chromium checkout.
102 LOCAL_LIVE_SERVER, // Some other server (maybe the real binary used by 102 LOCAL_LIVE_SERVER, // Some other server (maybe the real binary used by
103 // Google's sync service) that can be started on 103 // Google's sync service) that can be started on
104 // a per-test basis by running a command 104 // a per-test basis by running a command
105 EXTERNAL_LIVE_SERVER, // A remote server that the test code has no control 105 EXTERNAL_LIVE_SERVER, // A remote server that the test code has no control
106 // over whatsoever; cross your fingers that the 106 // over whatsoever; cross your fingers that the
107 // account state is initially clean. 107 // account state is initially clean.
108 IN_PROCESS_FAKE_SERVER, // The fake Sync server (FakeServer) running 108 IN_PROCESS_FAKE_SERVER, // The fake Sync server (FakeServer) running
109 // in-process (bypassing HTTP calls). This 109 // in-process (bypassing HTTP calls). This
110 // ServerType will eventually replace 110 // ServerType will eventually replace
111 // LOCAL_PYTHON_SERVER. 111 // LOCAL_PYTHON_SERVER.
112 }; 112 };
113 113
114 // A SyncTest must be associated with a particular test type. 114 // A SyncTest must be associated with a particular test type.
115 explicit SyncTest(TestType test_type); 115 explicit SyncTest(TestType test_type);
116 116
117 ~SyncTest() override; 117 ~SyncTest() override;
118 118
119 // Validates command line parameters and creates a local python test server if 119 // Validates command line parameters and creates a local python test server if
120 // specified. 120 // specified.
121 void SetUp() override; 121 void SetUp() override;
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 std::unique_ptr<net::URLFetcherImplFactory> factory_; 459 std::unique_ptr<net::URLFetcherImplFactory> factory_;
460 460
461 // The contents to be written to a profile's Preferences file before the 461 // The contents to be written to a profile's Preferences file before the
462 // Profile object is created. If empty, no preexisting file will be written. 462 // Profile object is created. If empty, no preexisting file will be written.
463 std::string preexisting_preferences_file_contents_; 463 std::string preexisting_preferences_file_contents_;
464 464
465 DISALLOW_COPY_AND_ASSIGN(SyncTest); 465 DISALLOW_COPY_AND_ASSIGN(SyncTest);
466 }; 466 };
467 467
468 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_ 468 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698