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

Unified Diff: chrome/test/data/webui/settings/test_reset_browser_proxy.js

Issue 2676643005: MD Settings: Fix reset_page_test.js in Vulcanized mode (Closed)
Patch Set: Un-unwrap Created 3 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
« no previous file with comments | « chrome/test/data/webui/settings/reset_profile_banner_test.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webui/settings/test_reset_browser_proxy.js
diff --git a/chrome/test/data/webui/settings/test_reset_browser_proxy.js b/chrome/test/data/webui/settings/test_reset_browser_proxy.js
new file mode 100644
index 0000000000000000000000000000000000000000..04780dbcfc960826ab949041aa18ae2ff6ee846e
--- /dev/null
+++ b/chrome/test/data/webui/settings/test_reset_browser_proxy.js
@@ -0,0 +1,67 @@
+// Copyright 2017 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.
+
+cr.define('reset_page', function() {
+ /**
+ * @constructor
+ * @implements {settings.ResetBrowserProxy}
+ * @extends {settings.TestBrowserProxy}
+ */
+ var TestResetBrowserProxy = function() {
+ settings.TestBrowserProxy.call(this, [
+ 'performResetProfileSettings',
+ 'onHideResetProfileDialog',
+ 'onHideResetProfileBanner',
+ 'onShowResetProfileDialog',
+ 'showReportedSettings',
+ 'getTriggeredResetToolName',
+ 'onPowerwashDialogShow',
+ ]);
+ };
+
+ TestResetBrowserProxy.prototype = {
+ __proto__: settings.TestBrowserProxy.prototype,
+
+ /** @override */
+ performResetProfileSettings: function(sendSettings, requestOrigin) {
+ this.methodCalled('performResetProfileSettings', requestOrigin);
+ return Promise.resolve();
+ },
+
+ /** @override */
+ onHideResetProfileDialog: function() {
+ this.methodCalled('onHideResetProfileDialog');
+ },
+
+ /** @override */
+ onHideResetProfileBanner: function() {
+ this.methodCalled('onHideResetProfileBanner');
+ },
+
+ /** @override */
+ onShowResetProfileDialog: function() {
+ this.methodCalled('onShowResetProfileDialog');
+ },
+
+ /** @override */
+ showReportedSettings: function() {
+ this.methodCalled('showReportedSettings');
+ },
+
+ /** @override */
+ getTriggeredResetToolName: function() {
+ this.methodCalled('getTriggeredResetToolName');
+ return Promise.resolve('WonderfulAV');
+ },
+
+ /** @override */
+ onPowerwashDialogShow: function() {
+ this.methodCalled('onPowerwashDialogShow');
+ },
+ };
+
+ return {
+ TestResetBrowserProxy: TestResetBrowserProxy,
+ };
+});
« no previous file with comments | « chrome/test/data/webui/settings/reset_profile_banner_test.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698