Index: chrome/test/data/extensions/platform_apps/messaging/app2/background.js |
diff --git a/chrome/test/data/extensions/platform_apps/messaging/app2/background.js b/chrome/test/data/extensions/platform_apps/messaging/app2/background.js |
index 3e5d2c053fc5af417b2d138c7543820484229328..07ef1ba1061d0ee0fad0e7996e5f59e556c3b268 100644 |
--- a/chrome/test/data/extensions/platform_apps/messaging/app2/background.js |
+++ b/chrome/test/data/extensions/platform_apps/messaging/app2/background.js |
@@ -2,6 +2,8 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+var otherId = 'ljhhihhmjomkjokmknellgbidphmahkh'; |
+ |
chrome.runtime.onConnectExternal.addListener(function(port) { |
port.onMessage.addListener(function(msg) { |
if (msg == 'ok_to_disconnect') { |
@@ -13,6 +15,7 @@ chrome.runtime.onConnectExternal.addListener(function(port) { |
}); |
chrome.runtime.onMessageExternal.addListener(function(msg, sender, callback) { |
+ chrome.test.assertEq({id: otherId}, sender); |
if (msg == 'hello') |
callback('hello_response'); |
else |