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 <sstream> | 10 #include <sstream> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
14 #include "base/json/json_writer.h" | 14 #include "base/json/json_writer.h" |
15 #include "base/logging.h" | 15 #include "base/logging.h" |
16 #include "base/strings/stringprintf.h" | 16 #include "base/strings/stringprintf.h" |
17 #include "base/timer/timer.h" | |
18 #include "chrome/browser/profiles/profile.h" | 17 #include "chrome/browser/profiles/profile.h" |
19 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" | 18 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" |
20 #include "chrome/browser/sync/about_sync_util.h" | 19 #include "chrome/browser/sync/about_sync_util.h" |
21 #include "chrome/browser/sync/profile_sync_service.h" | 20 #include "chrome/browser/sync/profile_sync_service.h" |
22 #include "chrome/browser/sync/profile_sync_service_factory.h" | 21 #include "chrome/browser/sync/profile_sync_service_factory.h" |
23 #include "chrome/browser/sync/test/integration/quiesce_status_change_checker.h" | 22 #include "chrome/browser/sync/test/integration/quiesce_status_change_checker.h" |
24 #include "chrome/browser/sync/test/integration/single_client_status_change_check
er.h" | 23 #include "chrome/browser/sync/test/integration/single_client_status_change_check
er.h" |
25 #include "chrome/common/chrome_switches.h" | 24 #include "chrome/common/chrome_switches.h" |
26 #include "chrome/common/pref_names.h" | 25 #include "chrome/common/pref_names.h" |
27 #include "components/invalidation/p2p_invalidation_service.h" | 26 #include "components/invalidation/p2p_invalidation_service.h" |
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
442 | 441 |
443 std::string ProfileSyncServiceHarness::GetServiceStatus() { | 442 std::string ProfileSyncServiceHarness::GetServiceStatus() { |
444 scoped_ptr<base::DictionaryValue> value( | 443 scoped_ptr<base::DictionaryValue> value( |
445 sync_ui_util::ConstructAboutInformation(service())); | 444 sync_ui_util::ConstructAboutInformation(service())); |
446 std::string service_status; | 445 std::string service_status; |
447 base::JSONWriter::WriteWithOptions(value.get(), | 446 base::JSONWriter::WriteWithOptions(value.get(), |
448 base::JSONWriter::OPTIONS_PRETTY_PRINT, | 447 base::JSONWriter::OPTIONS_PRETTY_PRINT, |
449 &service_status); | 448 &service_status); |
450 return service_status; | 449 return service_status; |
451 } | 450 } |
OLD | NEW |