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

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

Issue 2898723003: [Sync] Migrate SyncInternalsMessageHandler off CallJavascriptFunctionUnsafe. (Closed)
Patch Set: More updates for dbeam. Created 3 years, 7 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
« no previous file with comments | « components/sync/driver/about_sync_util.cc ('k') | components/sync/driver/fake_sync_service.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "testing/gmock/include/gmock/gmock.h" 10 #include "testing/gmock/include/gmock/gmock.h"
(...skipping 20 matching lines...) Expand all
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
OLDNEW
« no previous file with comments | « components/sync/driver/about_sync_util.cc ('k') | components/sync/driver/fake_sync_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698