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

Side by Side Diff: remoting/webapp/js_proto/sinon_stub_proto.js

Issue 944183002: HostTableEntry refactor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Jamie's feedback Created 5 years, 9 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 // How to create sinon.stubs that work with jscompile. 5 // How to create sinon.stubs that work with jscompile.
6 // 6 //
7 // To create the stub: 7 // To create the stub:
8 // sinon.$setupStub(<object>, <function-name>) 8 // sinon.$setupStub(<object>, <function-name>)
9 // 9 //
10 // To access the stub in unittests: 10 // To access the stub in unittests:
(...skipping 11 matching lines...) Expand all
22 base.isAppsV2.$testStub = new sinon.TestStub(); 22 base.isAppsV2.$testStub = new sinon.TestStub();
23 23
24 chrome.i18n.getMessage.$testStub = new sinon.TestStub(); 24 chrome.i18n.getMessage.$testStub = new sinon.TestStub();
25 25
26 chrome.socket.connect.$testStub = new sinon.TestStub(); 26 chrome.socket.connect.$testStub = new sinon.TestStub();
27 chrome.socket.create.$testStub = new sinon.TestStub(); 27 chrome.socket.create.$testStub = new sinon.TestStub();
28 chrome.socket.destroy.$testStub = new sinon.TestStub(); 28 chrome.socket.destroy.$testStub = new sinon.TestStub();
29 chrome.socket.read.$testStub = new sinon.TestStub(); 29 chrome.socket.read.$testStub = new sinon.TestStub();
30 chrome.socket.secure.$testStub = new sinon.TestStub(); 30 chrome.socket.secure.$testStub = new sinon.TestStub();
31 chrome.socket.write.$testStub = new sinon.TestStub(); 31 chrome.socket.write.$testStub = new sinon.TestStub();
32
33 remoting.setMode.$testStub = new sinon.TestStub();
34 remoting.Host.needsUpdate.$testStub = new sinon.TestStub();
OLDNEW
« no previous file with comments | « remoting/webapp/js_proto/sinon_proto.js ('k') | remoting/webapp/unittests/host_table_entry_unittest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698