| OLD | NEW |
| 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 "testing/gmock/include/gmock/gmock.h" | 10 #include "testing/gmock/include/gmock/gmock.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 } | 31 } |
| 32 | 32 |
| 33 SyncCycleSnapshot GetLastCycleSnapshot() const override { | 33 SyncCycleSnapshot GetLastCycleSnapshot() const override { |
| 34 return SyncCycleSnapshot(); | 34 return SyncCycleSnapshot(); |
| 35 } | 35 } |
| 36 }; | 36 }; |
| 37 | 37 |
| 38 TEST(SyncUIUtilTestAbout, ConstructAboutInformationWithUnrecoverableErrorTest) { | 38 TEST(SyncUIUtilTestAbout, ConstructAboutInformationWithUnrecoverableErrorTest) { |
| 39 SyncServiceMock service; | 39 SyncServiceMock service; |
| 40 | 40 |
| 41 std::unique_ptr<base::DictionaryValue> strings(ConstructAboutInformation( | 41 std::unique_ptr<base::DictionaryValue> strings( |
| 42 &service, nullptr, version_info::Channel::UNKNOWN)); | 42 ConstructAboutInformation(&service, version_info::Channel::UNKNOWN)); |
| 43 | 43 |
| 44 EXPECT_TRUE(strings->HasKey("unrecoverable_error_detected")); | 44 EXPECT_TRUE(strings->HasKey("unrecoverable_error_detected")); |
| 45 } | 45 } |
| 46 | 46 |
| 47 } // namespace | 47 } // namespace |
| 48 } // namespace sync_ui_util | 48 } // namespace sync_ui_util |
| 49 } // namespace syncer | 49 } // namespace syncer |
| OLD | NEW |