+ * Calls the unload handler for the window.
+ * @param {Window} contentWindow Window to be tested.
+ */
+test.util.sync.unload = function(contentWindow) {
+ contentWindow.fileManager.onUnload_();
+};
+
+/**
+ * Obtains the path which is shown in the breadcrumb.
+ *
+ * @param {Window} contentWindow Window to be tested.
+ * @return {string} Path which is shown in the breadcrumb.
+ */
+test.util.sync.getBreadcrumbPath = function(contentWindow) {
+ var breadcrumb = contentWindow.document.querySelector(
+ '#location-breadcrumbs');
+ var paths = breadcrumb.querySelectorAll('.breadcrumb-path');
+
+ var path = '';
+ for(var i = 0; i < paths.length; i++) {
+ path += '/' + paths[i].textContent;
+ }
+ return path;
+};
+
+/**
+ * Obtains the list of notification ID.
+ * @param {function(Object.<string, boolean>)} callback Callback function with
+ * results returned by the script.
+ */
+test.util.async.getNotificationIDs = function(callback) {
+ chrome.notifications.getAll(callback);
+};
+
+/**
+ * Obtains the preferences.
+ * @param {function(Object)} callback Callback function with results returned by
+ * the script.
+ */
+test.util.async.getPreferences = function(callback) {
+ chrome.fileManagerPrivate.getPreferences(callback);
+};
+
+/**