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

Unified Diff: chrome/browser/extensions/api/gcm/gcm_apitest.cc

Issue 167063004: [GCM] Move the manifest key checking logic to gcm.register function (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address feedback Created 6 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/extensions/api/gcm/gcm_apitest.cc
diff --git a/chrome/browser/extensions/api/gcm/gcm_apitest.cc b/chrome/browser/extensions/api/gcm/gcm_apitest.cc
index cfa637620c4f097789d9bb4f669663ed8c033a0f..41372a1b3ca57e3cc3d9598f48117b00ea2dbfe0 100644
--- a/chrome/browser/extensions/api/gcm/gcm_apitest.cc
+++ b/chrome/browser/extensions/api/gcm/gcm_apitest.cc
@@ -101,6 +101,13 @@ IN_PROC_BROWSER_TEST_F(GcmApiTest, Register) {
sender_ids.end());
}
+IN_PROC_BROWSER_TEST_F(GcmApiTest, RegisterWithoutKey) {
+ if (ShouldSkipTest())
+ return;
+
+ ASSERT_TRUE(RunExtensionTest("gcm/functions/register_without_key"));
+}
+
IN_PROC_BROWSER_TEST_F(GcmApiTest, SendValidation) {
if (ShouldSkipTest())
return;

Powered by Google App Engine
This is Rietveld 408576698