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

Side by Side Diff: components/sync/driver/about_sync_util_unittest.cc

Issue 2258873003: [Sync] Move sessions/ to engine/cycle/ and rename things to match. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 4 years, 4 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "components/sync/driver/about_sync_util.h" 5 #include "components/sync/driver/about_sync_util.h"
6 6
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "components/sync/driver/fake_sync_service.h" 8 #include "components/sync/driver/fake_sync_service.h"
9 #include "components/sync/engine/sync_status.h" 9 #include "components/sync/engine/sync_status.h"
10 #include "components/version_info/version_info.h" 10 #include "components/version_info/version_info.h"
(...skipping 15 matching lines...) Expand all
26 bool HasUnrecoverableError() const override { return true; } 26 bool HasUnrecoverableError() const override { return true; }
27 27
28 bool QueryDetailedSyncStatus(syncer::SyncStatus* result) override { 28 bool QueryDetailedSyncStatus(syncer::SyncStatus* result) override {
29 return false; 29 return false;
30 } 30 }
31 31
32 base::string16 GetLastSyncedTimeString() const override { 32 base::string16 GetLastSyncedTimeString() const override {
33 return base::string16(base::ASCIIToUTF16("none")); 33 return base::string16(base::ASCIIToUTF16("none"));
34 } 34 }
35 35
36 syncer::sessions::SyncSessionSnapshot GetLastSessionSnapshot() 36 syncer::SyncCycleSnapshot GetLastCycleSnapshot() const override {
37 const override { 37 return syncer::SyncCycleSnapshot();
38 return syncer::sessions::SyncSessionSnapshot();
39 } 38 }
40 }; 39 };
41 40
42 TEST(SyncUIUtilTestAbout, ConstructAboutInformationWithUnrecoverableErrorTest) { 41 TEST(SyncUIUtilTestAbout, ConstructAboutInformationWithUnrecoverableErrorTest) {
43 SyncServiceMock service; 42 SyncServiceMock service;
44 43
45 std::unique_ptr<base::DictionaryValue> strings(ConstructAboutInformation( 44 std::unique_ptr<base::DictionaryValue> strings(ConstructAboutInformation(
46 &service, NULL, version_info::Channel::UNKNOWN)); 45 &service, NULL, version_info::Channel::UNKNOWN));
47 46
48 EXPECT_TRUE(strings->HasKey("unrecoverable_error_detected")); 47 EXPECT_TRUE(strings->HasKey("unrecoverable_error_detected"));
49 } 48 }
50 49
51 } // namespace 50 } // namespace
52 } // namespace sync_ui_util 51 } // namespace sync_ui_util
53 } // namespace sync_driver 52 } // namespace sync_driver
OLDNEW
« no previous file with comments | « components/sync/driver/about_sync_util.cc ('k') | components/sync/driver/backend_migrator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698