| Index: remoting/webapp/base/js/telemetry_event_writer_unittest.js
|
| diff --git a/remoting/webapp/base/js/telemetry_event_writer_unittest.js b/remoting/webapp/base/js/telemetry_event_writer_unittest.js
|
| index cf41c9fa3ddfdf09188afd3e3dce515f8dcabd6e..0a17ae6daa1e2230f908f6265dcd3fdd6ad5ad18 100644
|
| --- a/remoting/webapp/base/js/telemetry_event_writer_unittest.js
|
| +++ b/remoting/webapp/base/js/telemetry_event_writer_unittest.js
|
| @@ -92,8 +92,7 @@ QUnit.test('should send CANCELED event when window is closed while started.',
|
| chrome.app.window.current().id = 'fake-window-id';
|
| }).then(function() {
|
| logger.logSessionStateChange(
|
| - remoting.ChromotingEvent.SessionState.STARTED,
|
| - remoting.ChromotingEvent.ConnectionError.NONE);
|
| + remoting.ChromotingEvent.SessionState.STARTED);
|
| }).then(function() {
|
| return service.unbindSession('fake-window-id');
|
| }).then(function() {
|
| @@ -119,8 +118,8 @@ QUnit.test('should send CANCELED event when window is closed while connecting.',
|
| return service.init().then(function() {
|
| chrome.app.window.current().id = 'fake-window-id';
|
| }).then(function() {
|
| - logger.logClientSessionStateChange(
|
| - remoting.ClientSession.State.CONNECTING, remoting.Error.none(), null);
|
| + logger.logSessionStateChange(
|
| + remoting.ChromotingEvent.SessionState.CONNECTING);
|
| }).then(function() {
|
| return service.unbindSession('fake-window-id');
|
| }).then(function() {
|
| @@ -147,11 +146,11 @@ QUnit.test('should send CLOSED event when window is closed while connected.',
|
| return service.init().then(function() {
|
| chrome.app.window.current().id = 'fake-window-id';
|
| }).then(function() {
|
| - logger.logClientSessionStateChange(
|
| - remoting.ClientSession.State.CONNECTING, remoting.Error.none(), null);
|
| + logger.logSessionStateChange(
|
| + remoting.ChromotingEvent.SessionState.CONNECTING);
|
| }).then(function() {
|
| - logger.logClientSessionStateChange(
|
| - remoting.ClientSession.State.CONNECTED, remoting.Error.none(), null);
|
| + logger.logSessionStateChange(
|
| + remoting.ChromotingEvent.SessionState.CONNECTED);
|
| }).then(function() {
|
| return service.unbindSession('fake-window-id');
|
| }).then(function() {
|
| @@ -180,11 +179,11 @@ QUnit.test('should not send CLOSED event when window is closed unconnected.',
|
| return service.init().then(function() {
|
| chrome.app.window.current().id = 'fake-window-id';
|
| }).then(function() {
|
| - logger.logClientSessionStateChange(
|
| - remoting.ClientSession.State.CONNECTING, remoting.Error.none(), null);
|
| + logger.logSessionStateChange(
|
| + remoting.ChromotingEvent.SessionState.CONNECTING);
|
| }).then(function() {
|
| - logger.logClientSessionStateChange(
|
| - remoting.ClientSession.State.FAILED, remoting.Error.none(), null);
|
| + logger.logSessionStateChange(
|
| + remoting.ChromotingEvent.SessionState.CONNECTION_FAILED);
|
| }).then(function() {
|
| return service.unbindSession('fake-window-id');
|
| }).then(function() {
|
|
|