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

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: Created 6 years, 2 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 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 },
raymes 2014/10/17 02:11:10 And why is this deleted? (sorry this is probably m
Sam McNally 2014/10/20 05:13:00 Corresponding JS test for the other deletion.
184
185 ], test.runTests, exports); 178 ], test.runTests, exports);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698