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

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

Issue 1282013004: BackgroundSyncManager tracks client registrations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed test Created 5 years, 3 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 189dc117cfccc6192fc2e41dfb379ee3912ac464..89b192526e3a42736346a563904f9908eb8dbc38 100644
--- a/content/child/background_sync/background_sync_type_converters_unittest.cc
+++ b/content/child/background_sync/background_sync_type_converters_unittest.cc
@@ -74,7 +74,7 @@ TEST(BackgroundSyncTypeConverterTest, TestDefaultBlinkToMojoConversion) {
content::SyncRegistrationPtr out =
ConvertTo<content::SyncRegistrationPtr>(in);
- ASSERT_EQ(blink::WebSyncRegistration::UNREGISTERED_SYNC_ID, out->id);
+ ASSERT_EQ(blink::WebSyncRegistration::UNREGISTERED_SYNC_ID, out->handle_id);
ASSERT_EQ(content::BACKGROUND_SYNC_PERIODICITY_ONE_SHOT, out->periodicity);
ASSERT_EQ("", out->tag);
ASSERT_EQ(0UL, out->min_period_ms);
@@ -90,7 +90,7 @@ TEST(BackgroundSyncTypeConverterTest, TestFullPeriodicBlinkToMojoConversion) {
content::SyncRegistrationPtr out =
ConvertTo<content::SyncRegistrationPtr>(in);
- ASSERT_EQ(7, out->id);
+ ASSERT_EQ(7, out->handle_id);
ASSERT_EQ(content::BACKGROUND_SYNC_PERIODICITY_PERIODIC, out->periodicity);
ASSERT_EQ("BlinkToMojo", out->tag);
ASSERT_EQ(12340000UL, out->min_period_ms);
@@ -108,7 +108,7 @@ TEST(BackgroundSyncTypeConverterTest, TestFullOneShotBlinkToMojoConversion) {
content::SyncRegistrationPtr out =
ConvertTo<content::SyncRegistrationPtr>(in);
- ASSERT_EQ(7, out->id);
+ ASSERT_EQ(7, out->handle_id);
ASSERT_EQ(content::BACKGROUND_SYNC_PERIODICITY_ONE_SHOT, out->periodicity);
ASSERT_EQ("BlinkToMojo", out->tag);
ASSERT_EQ(12340000UL, out->min_period_ms);
@@ -135,7 +135,7 @@ TEST(BackgroundSyncTypeConverterTest, TestDefaultMojoToBlinkConversion) {
TEST(BackgroundSyncTypeConverterTest, TestFullPeriodicMojoToBlinkConversion) {
content::SyncRegistrationPtr in(
content::SyncRegistration::New());
- in->id = 41;
+ in->handle_id = 41;
in->periodicity = content::BACKGROUND_SYNC_PERIODICITY_PERIODIC;
in->tag = mojo::String("MojoToBlink");
in->min_period_ms = 43210000;
@@ -157,7 +157,7 @@ TEST(BackgroundSyncTypeConverterTest, TestFullPeriodicMojoToBlinkConversion) {
TEST(BackgroundSyncTypeConverterTest, TestFullOneShotMojoToBlinkConversion) {
content::SyncRegistrationPtr in(
content::SyncRegistration::New());
- in->id = 41;
+ in->handle_id = 41;
in->periodicity = content::BACKGROUND_SYNC_PERIODICITY_ONE_SHOT;
in->tag = mojo::String("MojoToBlink");
in->min_period_ms = 43210000;
« 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