OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |