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

Side by Side Diff: extensions/test/data/data_receiver_unittest.js

Issue 646063003: Change data pipe wrappers used by SerialConnection to use message pipe. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: split out bug fix Created 6 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Tests launched by extensions/renderer/api/serial/data_receiver_unittest.cc 5 // Tests launched by extensions/renderer/api/serial/data_receiver_unittest.cc
6 6
7 var test = require('test').binding; 7 var test = require('test').binding;
8 var unittestBindings = require('test_environment_specific_bindings'); 8 var unittestBindings = require('test_environment_specific_bindings');
9 9
10 var BUFFER_SIZE = 10; 10 var BUFFER_SIZE = 10;
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 receiver.receive, receiver, [], 'DataReceiver has been closed'); 168 receiver.receive, receiver, [], 'DataReceiver has been closed');
169 } 169 }
170 170
171 createReceiver() 171 createReceiver()
172 .then(closeReceiver) 172 .then(closeReceiver)
173 .then(serializeRoundTrip) 173 .then(serializeRoundTrip)
174 .then(receiveAfterClose) 174 .then(receiveAfterClose)
175 .then(test.succeed, test.fail); 175 .then(test.succeed, test.fail);
176 }, 176 },
177 177
178 function testSourceShutdown() {
179 createReceiver()
180 .then(receiveAndCheckError(FATAL_ERROR))
181 .then(closeReceiver)
182 .then(test.succeed, test.fail);
183 },
184
185 ], test.runTests, exports); 178 ], test.runTests, exports);
OLDNEW
« extensions/renderer/resources/data_sender.js ('K') | « extensions/renderer/resources/data_sender.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698