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

Unified Diff: remoting/webapp/unittests/dns_blackhole_checker_unittest.js

Issue 959963002: [Chromoting] Enable jscompile for webapp unittests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename sinon.$testStub -> sinon.TestStub Created 5 years, 10 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/unittests/dns_blackhole_checker_unittest.js
diff --git a/remoting/webapp/unittests/dns_blackhole_checker_unittest.js b/remoting/webapp/unittests/dns_blackhole_checker_unittest.js
index d6e7d224c5f92428a5b3c849c1cd609389585a04..6f5b0b2ed86ec036eda3d677e3b150942dd6a580 100644
--- a/remoting/webapp/unittests/dns_blackhole_checker_unittest.js
+++ b/remoting/webapp/unittests/dns_blackhole_checker_unittest.js
@@ -2,13 +2,26 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+/**
+ * @fileoverview
+ * TODO(garykac): Create interface for SignalStrategy.
+ * @suppress {checkTypes|checkVars|reportUnknownTypes|visibility}
+ */
+
(function() {
'use strict';
+/** @type {(sinon.Spy|function(remoting.SignalStrategy.State))} */
var onStateChange = null;
+
+/** @type {(sinon.Spy|function(Element):void)} */
var onIncomingStanzaCallback = null;
+
+/** @type {remoting.DnsBlackholeChecker} */
var checker = null;
+
+/** @type {remoting.MockSignalStrategy} */
var signalStrategy = null;
var fakeXhrs;
@@ -19,7 +32,6 @@ module('dns_blackhole_checker', {
fakeXhrs.push(xhr);
};
-
onStateChange = sinon.spy();
onIncomingStanzaCallback = sinon.spy();
signalStrategy = new remoting.MockSignalStrategy();

Powered by Google App Engine
This is Rietveld 408576698