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

Unified Diff: chrome/browser/services/gcm/push_messaging_application_id_unittest.cc

Issue 931113003: [Push] Use proper accessors for PushMessagingApplicationId. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 10 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: chrome/browser/services/gcm/push_messaging_application_id_unittest.cc
diff --git a/chrome/browser/services/gcm/push_messaging_application_id_unittest.cc b/chrome/browser/services/gcm/push_messaging_application_id_unittest.cc
index 5b57026b876bafb1c63fbf5bc62b4318ec75d88b..34944db55cf3fbad17d79179f625ea552df98130 100644
--- a/chrome/browser/services/gcm/push_messaging_application_id_unittest.cc
+++ b/chrome/browser/services/gcm/push_messaging_application_id_unittest.cc
@@ -15,7 +15,7 @@ class PushMessagingApplicationIdTest : public testing::Test {
// To bypass DCHECK in PushMessagingApplicationId::Generate, we just use it
// to generate app_id_guid, and then use private constructor.
std::string app_id_guid = gcm::PushMessagingApplicationId::Generate(
- GURL("https://www.example.com/"), 1).app_id_guid;
+ GURL("https://www.example.com/"), 1).app_id_guid();
return PushMessagingApplicationId(app_id_guid, origin,
service_worker_registration_id);
}
@@ -33,9 +33,9 @@ TEST_F(PushMessagingApplicationIdTest, ConstructorValidity) {
TEST_F(PushMessagingApplicationIdTest, UniqueGuids) {
EXPECT_NE(gcm::PushMessagingApplicationId::Generate(
- GURL("https://www.example.com/"), 1).app_id_guid,
+ GURL("https://www.example.com/"), 1).app_id_guid(),
gcm::PushMessagingApplicationId::Generate(
- GURL("https://www.example.com/"), 1).app_id_guid);
+ GURL("https://www.example.com/"), 1).app_id_guid());
}
} // namespace gcm

Powered by Google App Engine
This is Rietveld 408576698