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

Unified Diff: ppapi/tests/extensions/socket_permissions/controller.js

Issue 949543002: PPAPI: Add test for new-style permission for Sockets (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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: ppapi/tests/extensions/socket_permissions/controller.js
diff --git a/ppapi/tests/extensions/packaged_app/controller.js b/ppapi/tests/extensions/socket_permissions/controller.js
similarity index 90%
copy from ppapi/tests/extensions/packaged_app/controller.js
copy to ppapi/tests/extensions/socket_permissions/controller.js
index 1c4e0dbb74602c2949c83449b6ef66ecdb18cf55..17be97bcebc25e3f31251cf446de705e3f7d05e8 100644
--- a/ppapi/tests/extensions/packaged_app/controller.js
+++ b/ppapi/tests/extensions/socket_permissions/controller.js
@@ -1,4 +1,4 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
+// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -18,7 +18,7 @@ var onControlMessageReceived = function(message) {
}
var onPluginMessageReceived = function(message) {
- if (message.data == "Test passed") {
+ if (message.data == "hello") {
raymes 2015/02/23 00:56:10 optional cleanup: This is a strange magic string t
dmichael (off chromium) 2015/02/23 23:46:38 What do you think of "PASS", since it matches what
chrome.test.sendMessage("hello", onControlMessageReceived);
} else if (message.data) {
chrome.test.fail(message.data);

Powered by Google App Engine
This is Rietveld 408576698