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

Side by Side Diff: chrome/browser/sync/test/integration/profile_sync_service_harness.cc

Issue 183803026: Clean up InvalidationService test infrastructure. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 9 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 | Annotate | Revision Log
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 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h" 5 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h"
6 6
7 #include <cstddef> 7 #include <cstddef>
8 #include <iterator> 8 #include <iterator>
9 #include <ostream> 9 #include <ostream>
10 #include <set> 10 #include <set>
(...skipping 29 matching lines...) Expand all
40 #include "content/public/browser/notification_service.h" 40 #include "content/public/browser/notification_service.h"
41 #include "google_apis/gaia/gaia_constants.h" 41 #include "google_apis/gaia/gaia_constants.h"
42 #include "sync/internal_api/public/base/progress_marker_map.h" 42 #include "sync/internal_api/public/base/progress_marker_map.h"
43 #include "sync/internal_api/public/sessions/sync_session_snapshot.h" 43 #include "sync/internal_api/public/sessions/sync_session_snapshot.h"
44 #include "sync/internal_api/public/util/sync_string_conversions.h" 44 #include "sync/internal_api/public/util/sync_string_conversions.h"
45 45
46 #if defined(ENABLE_MANAGED_USERS) 46 #if defined(ENABLE_MANAGED_USERS)
47 #include "chrome/browser/managed_mode/managed_user_constants.h" 47 #include "chrome/browser/managed_mode/managed_user_constants.h"
48 #endif 48 #endif
49 49
50 using invalidation::P2PInvalidationService;
50 using syncer::sessions::SyncSessionSnapshot; 51 using syncer::sessions::SyncSessionSnapshot;
51 using invalidation::P2PInvalidationService;
52 52
53 // The amount of time for which we wait for a sync operation to complete. 53 // The amount of time for which we wait for a sync operation to complete.
54 // TODO(sync): This timeout must eventually be made less than the default 45 54 // TODO(sync): This timeout must eventually be made less than the default 45
55 // second timeout for integration tests so that in case a sync operation times 55 // second timeout for integration tests so that in case a sync operation times
56 // out, it is able to log a useful failure message before the test is killed. 56 // out, it is able to log a useful failure message before the test is killed.
57 static const int kSyncOperationTimeoutMs = 45000; 57 static const int kSyncOperationTimeoutMs = 45000;
58 58
59 namespace { 59 namespace {
60 60
61 // Checks if a desired change in the state of the sync engine has taken place by 61 // Checks if a desired change in the state of the sync engine has taken place by
(...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after
787 787
788 std::string ProfileSyncServiceHarness::GetServiceStatus() { 788 std::string ProfileSyncServiceHarness::GetServiceStatus() {
789 scoped_ptr<base::DictionaryValue> value( 789 scoped_ptr<base::DictionaryValue> value(
790 sync_ui_util::ConstructAboutInformation(service())); 790 sync_ui_util::ConstructAboutInformation(service()));
791 std::string service_status; 791 std::string service_status;
792 base::JSONWriter::WriteWithOptions(value.get(), 792 base::JSONWriter::WriteWithOptions(value.get(),
793 base::JSONWriter::OPTIONS_PRETTY_PRINT, 793 base::JSONWriter::OPTIONS_PRETTY_PRINT,
794 &service_status); 794 &service_status);
795 return service_status; 795 return service_status;
796 } 796 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698