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

Unified Diff: remoting/webapp/js_proto/sinon_stub_proto.js

Issue 1002553002: Refactor sinon helper to make it easier to use. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: remoting/webapp/js_proto/sinon_stub_proto.js
diff --git a/remoting/webapp/js_proto/sinon_stub_proto.js b/remoting/webapp/js_proto/sinon_stub_proto.js
deleted file mode 100644
index 9abaa56187d419864ab02326b2234af099566928..0000000000000000000000000000000000000000
--- a/remoting/webapp/js_proto/sinon_stub_proto.js
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// How to create sinon.stubs that work with jscompile.
-//
-// To create the stub:
-// sinon.$setupStub(<object>, <function-name>)
-//
-// To access the stub in unittests:
-// <object>.<function-name>.$testStub.<sinon-test>
-//
-// For example:
-// sinon.$setupStub(chrome.socket, 'create');
-// chrome.socket.create.$testStub.restore();
-//
-// For jscompile to analyze these corectly, you'll also need to add an entry
-// in this file for any object you stub out this way. For example:
-// chrome.socket.create.$testStub = new sinon.TestStub();
-
-base.debug.assert.$testStub = new sinon.TestStub();
-base.isAppsV2.$testStub = new sinon.TestStub();
-
-chrome.i18n.getMessage.$testStub = new sinon.TestStub();
-
-chrome.socket.connect.$testStub = new sinon.TestStub();
-chrome.socket.create.$testStub = new sinon.TestStub();
-chrome.socket.destroy.$testStub = new sinon.TestStub();
-chrome.socket.read.$testStub = new sinon.TestStub();
-chrome.socket.secure.$testStub = new sinon.TestStub();
-chrome.socket.write.$testStub = new sinon.TestStub();
-
-remoting.setMode.$testStub = new sinon.TestStub();
-remoting.Host.needsUpdate.$testStub = new sinon.TestStub();
« no previous file with comments | « remoting/webapp/crd/html/template_unittest.html ('k') | remoting/webapp/unittests/apps_v2_migration_unittest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698