Commit f795e6f1 authored by Noel Gordon's avatar Noel Gordon Committed by Chromium LUCI CQ

[filesapp] Move SWA volume-related fakes together in the code

Move the DriveSyncHandler fake definition after the VolumeManager fake
and all the volume-related fakes.

Bug: 1113981
Change-Id: Id0999b986230ae32d55baac07a8babaff45dcfe4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2604785Reviewed-by: default avatarAlex Danilo <adanilo@chromium.org>
Commit-Queue: Noel Gordon <noel@chromium.org>
Cr-Commit-Position: refs/heads/master@{#839676}
parent 2338d361
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// TODO(crbug.com/1113981) rename to file_manager_api_proxy.js or similar.
/** @suppress {checkTypes} */ /** @suppress {checkTypes} */
window.chrome.extension = { window.chrome.extension = {
inIncognitoContext: false, inIncognitoContext: false,
...@@ -197,30 +195,6 @@ window.FileBrowserBackgroundFull = class extends FileBrowserBackground { ...@@ -197,30 +195,6 @@ window.FileBrowserBackgroundFull = class extends FileBrowserBackground {
} }
} }
window.DriveSyncHandler = class extends EventTarget {
/**
* Returns the completed event name.
* @return {string}
*/
getCompletedEventName() {}
/**
* Returns whether the Drive sync is currently suppressed or not.
* @return {boolean}
*/
isSyncSuppressed() {}
/**
* Shows a notification that Drive sync is disabled on cellular networks.
*/
showDisabledMobileSyncNotification() {}
/**
* @return {boolean} Whether the handler is syncing items or not.
*/
get syncing() {}
}
window.VolumeManager = class { window.VolumeManager = class {
constructor() { constructor() {
/** /**
...@@ -407,6 +381,30 @@ window.VolumeInfoListFake = class { ...@@ -407,6 +381,30 @@ window.VolumeInfoListFake = class {
} }
} }
window.DriveSyncHandler = class extends EventTarget {
/**
* Returns the completed event name.
* @return {string}
*/
getCompletedEventName() {}
/**
* Returns whether the Drive sync is currently suppressed or not.
* @return {boolean}
*/
isSyncSuppressed() {}
/**
* Shows a notification that Drive sync is disabled on cellular networks.
*/
showDisabledMobileSyncNotification() {}
/**
* @return {boolean} Whether the handler is syncing items or not.
*/
get syncing() {}
}
window.Crostini = class { window.Crostini = class {
/** /**
* Initialize enabled settings. * Initialize enabled settings.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment