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

Unified Diff: content/child/background_sync/background_sync_type_converters_unittest.cc

Issue 1763123002: [BackgroundSync] Remove BackgroundSyncRegistrationHandle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments from PS7 Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: content/child/background_sync/background_sync_type_converters_unittest.cc
diff --git a/content/child/background_sync/background_sync_type_converters_unittest.cc b/content/child/background_sync/background_sync_type_converters_unittest.cc
index 991d37aa6efa645373604e4ae97e3f2cdfee8153..7854dd40ab63bc51cb40483cf8d8bbddd642f5a4 100644
--- a/content/child/background_sync/background_sync_type_converters_unittest.cc
+++ b/content/child/background_sync/background_sync_type_converters_unittest.cc
@@ -39,7 +39,7 @@ TEST(BackgroundSyncTypeConverterTest, TestDefaultBlinkToMojoConversion) {
content::SyncRegistrationPtr out =
ConvertTo<content::SyncRegistrationPtr>(in);
- ASSERT_EQ(blink::WebSyncRegistration::UNREGISTERED_SYNC_ID, out->handle_id);
+ ASSERT_EQ(blink::WebSyncRegistration::UNREGISTERED_SYNC_ID, out->id);
ASSERT_EQ("", out->tag);
ASSERT_EQ(content::BackgroundSyncNetworkState::ONLINE, out->network_state);
}
@@ -50,7 +50,7 @@ TEST(BackgroundSyncTypeConverterTest, TestFullBlinkToMojoConversion) {
content::SyncRegistrationPtr out =
ConvertTo<content::SyncRegistrationPtr>(in);
- ASSERT_EQ(7, out->handle_id);
+ ASSERT_EQ(7, out->id);
ASSERT_EQ("BlinkToMojo", out->tag);
ASSERT_EQ(content::BackgroundSyncNetworkState::AVOID_CELLULAR,
out->network_state);
@@ -70,7 +70,7 @@ TEST(BackgroundSyncTypeConverterTest, TestDefaultMojoToBlinkConversion) {
TEST(BackgroundSyncTypeConverterTest, TestFullMojoToBlinkConversion) {
content::SyncRegistrationPtr in(
content::SyncRegistration::New());
- in->handle_id = 41;
+ in->id = 41;
in->tag = mojo::String("MojoToBlink");
in->network_state = content::BackgroundSyncNetworkState::AVOID_CELLULAR;
scoped_ptr<blink::WebSyncRegistration> out =
« no previous file with comments | « content/child/background_sync/background_sync_type_converters.cc ('k') | content/common/background_sync_service.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698