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

Unified Diff: chrome/test/data/extensions/api_test/socket/api/background.js

Issue 15359007: Allow missing socketType in SocketInfo if socket is not connected (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changes as per asargent Created 7 years, 7 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/browser/extensions/api/socket/socket_api.cc ('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/socket/api/background.js
diff --git a/chrome/test/data/extensions/api_test/socket/api/background.js b/chrome/test/data/extensions/api_test/socket/api/background.js
index 5b3b425806a4ebd05b7c0ca2559868cfbb17e2c5..fdfb2241960cdd9524c3c48f918a01a3f68b048e 100644
--- a/chrome/test/data/extensions/api_test/socket/api/background.js
+++ b/chrome/test/data/extensions/api_test/socket/api/background.js
@@ -55,8 +55,10 @@ var testSocketCreation = function() {
}
socket.destroy(socketInfo.socketId);
-
- chrome.test.succeed();
+ socket.getInfo(socketInfo.socketId, function(info) {
+ chrome.test.assertEq(undefined, info);
+ chrome.test.succeed();
+ });
}
chrome.test.assertTrue(socketInfo.socketId > 0);
« no previous file with comments | « chrome/browser/extensions/api/socket/socket_api.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698