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

Side by Side Diff: chrome/browser/sync/profile_sync_service.h

Issue 2658003: [GTTF] Use FRIEND_TEST_ALL_PREFIXES in chrome/browser/sync (Closed)
Patch Set: Created 10 years, 6 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/browser/sync/engine/syncer_thread.h ('k') | chrome/browser/sync/sync_setup_flow.h » ('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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_PROFILE_SYNC_SERVICE_H_ 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <map> 9 #include <map>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/gtest_prod_util.h"
12 #include "base/observer_list.h" 13 #include "base/observer_list.h"
13 #include "base/scoped_ptr.h" 14 #include "base/scoped_ptr.h"
14 #include "base/time.h" 15 #include "base/time.h"
15 #include "chrome/browser/google_service_auth_error.h" 16 #include "chrome/browser/google_service_auth_error.h"
16 #include "chrome/browser/sync/glue/data_type_controller.h" 17 #include "chrome/browser/sync/glue/data_type_controller.h"
17 #include "chrome/browser/sync/glue/data_type_manager.h" 18 #include "chrome/browser/sync/glue/data_type_manager.h"
18 #include "chrome/browser/sync/glue/sync_backend_host.h" 19 #include "chrome/browser/sync/glue/sync_backend_host.h"
19 #include "chrome/browser/sync/notification_method.h" 20 #include "chrome/browser/sync/notification_method.h"
20 #include "chrome/browser/sync/sync_setup_wizard.h" 21 #include "chrome/browser/sync/sync_setup_wizard.h"
21 #include "chrome/browser/sync/syncable/model_type.h" 22 #include "chrome/browser/sync/syncable/model_type.h"
22 #include "chrome/browser/sync/unrecoverable_error_handler.h" 23 #include "chrome/browser/sync/unrecoverable_error_handler.h"
23 #include "chrome/common/notification_observer.h" 24 #include "chrome/common/notification_observer.h"
24 #include "chrome/common/notification_registrar.h" 25 #include "chrome/common/notification_registrar.h"
25 #include "googleurl/src/gurl.h" 26 #include "googleurl/src/gurl.h"
26 #include "testing/gtest/include/gtest/gtest_prod.h"
27 27
28 class NotificationDetails; 28 class NotificationDetails;
29 class NotificationSource; 29 class NotificationSource;
30 class NotificationType; 30 class NotificationType;
31 class Profile; 31 class Profile;
32 class ProfileSyncFactory; 32 class ProfileSyncFactory;
33 33
34 namespace chrome_common_net { 34 namespace chrome_common_net {
35 class NetworkChangeNotifierThread; 35 class NetworkChangeNotifierThread;
36 } 36 }
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 // this! 321 // this!
322 GoogleServiceAuthError last_auth_error_; 322 GoogleServiceAuthError last_auth_error_;
323 323
324 // Cache of the last name the client attempted to authenticate. 324 // Cache of the last name the client attempted to authenticate.
325 std::string last_attempted_user_email_; 325 std::string last_attempted_user_email_;
326 326
327 private: 327 private:
328 friend class ProfileSyncServiceTest; 328 friend class ProfileSyncServiceTest;
329 friend class ProfileSyncServicePreferenceTest; 329 friend class ProfileSyncServicePreferenceTest;
330 friend class ProfileSyncServiceTestHarness; 330 friend class ProfileSyncServiceTestHarness;
331 FRIEND_TEST(ProfileSyncServiceTest, InitialState); 331 FRIEND_TEST_ALL_PREFIXES(ProfileSyncServiceTest, InitialState);
332 FRIEND_TEST(ProfileSyncServiceTest, UnrecoverableErrorSuspendsService); 332 FRIEND_TEST_ALL_PREFIXES(ProfileSyncServiceTest,
333 UnrecoverableErrorSuspendsService);
333 334
334 // Initializes the various settings from the command line. 335 // Initializes the various settings from the command line.
335 void InitSettings(); 336 void InitSettings();
336 337
337 // Sets the last synced time to the current time. 338 // Sets the last synced time to the current time.
338 void UpdateLastSyncedTime(); 339 void UpdateLastSyncedTime();
339 340
340 static const wchar_t* GetPrefNameForDataType(syncable::ModelType data_type); 341 static const wchar_t* GetPrefNameForDataType(syncable::ModelType data_type);
341 342
342 // When running inside Chrome OS, extract the LSID cookie from the cookie 343 // When running inside Chrome OS, extract the LSID cookie from the cookie
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 417
417 NotificationRegistrar registrar_; 418 NotificationRegistrar registrar_;
418 419
419 ScopedRunnableMethodFactory<ProfileSyncService> 420 ScopedRunnableMethodFactory<ProfileSyncService>
420 scoped_runnable_method_factory_; 421 scoped_runnable_method_factory_;
421 422
422 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); 423 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService);
423 }; 424 };
424 425
425 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 426 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/engine/syncer_thread.h ('k') | chrome/browser/sync/sync_setup_flow.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698