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

Unified Diff: chrome/test/data/extensions/api_test/gcm/functions/send/send.js

Issue 141433030: [GCM] Updating the list of restricted keys for GCM API messages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing code reviews from jianli@ and kalman@, fixing a typo in error messages" 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
« no previous file with comments | « chrome/test/data/extensions/api_test/gcm/events/on_send_error.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/extensions/api_test/gcm/functions/send/send.js
diff --git a/chrome/test/data/extensions/api_test/gcm/functions/send/send.js b/chrome/test/data/extensions/api_test/gcm/functions/send/send.js
index c9b3012e22cfe5b70a300c70bfc3f0497686d190..3ea1728654e85db21ae582c65531fba428b2984b 100644
--- a/chrome/test/data/extensions/api_test/gcm/functions/send/send.js
+++ b/chrome/test/data/extensions/api_test/gcm/functions/send/send.js
@@ -97,6 +97,11 @@ chrome.test.runTests([
message.data["goog.something"] = "value";
});
},
+ function failureWhenDataKeyIsGoogDotMixedCasedPrefixed() {
+ expectFailureWhen(function(message) {
+ message.data["GoOg.something"] = "value";
+ });
+ },
function successWhenDataKeyHasGoogleInIt() {
expectSuccessWhen(function(message) {
message.data["somthing.google"] = "value";
@@ -107,11 +112,21 @@ chrome.test.runTests([
message.data["google"] = "value";
});
},
+ function failureWhenDataKeyIsMixedCasedGoogle() {
+ expectFailureWhen(function(message) {
+ message.data["GoOgLe"] = "value";
+ });
+ },
function failureWhenDataKeyIsGooglePrefixed() {
expectFailureWhen(function(message) {
message.data["googleSomething"] = "value";
});
},
+ function failureWhenDataKeyIsCollapeKey() {
+ expectFailureWhen(function(message) {
+ message.data["collapse_key"] = "value";
+ });
+ },
function failureWhenMessageIsTooLarge() {
expectFailureWhen(function(message) {
function generateString(base, len) {
« no previous file with comments | « chrome/test/data/extensions/api_test/gcm/events/on_send_error.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698