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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 cr.define('reset_page', function() {
6 /**
7 * @constructor
8 * @implements {settings.ResetBrowserProxy}
9 * @extends {settings.TestBrowserProxy}
10 */
11 var TestResetBrowserProxy = function() {
12 settings.TestBrowserProxy.call(this, [
13 'performResetProfileSettings',
14 'onHideResetProfileDialog',
15 'onHideResetProfileBanner',
16 'onShowResetProfileDialog',
17 'showReportedSettings',
18 'getTriggeredResetToolName',
19 'onPowerwashDialogShow',
20 ]);
21 };
22
23 TestResetBrowserProxy.prototype = {
24 __proto__: settings.TestBrowserProxy.prototype,
25
26 /** @override */
27 performResetProfileSettings: function(sendSettings, requestOrigin) {
28 this.methodCalled('performResetProfileSettings', requestOrigin);
29 return Promise.resolve();
30 },
31
32 /** @override */
33 onHideResetProfileDialog: function() {
34 this.methodCalled('onHideResetProfileDialog');
35 },
36
37 /** @override */
38 onHideResetProfileBanner: function() {
39 this.methodCalled('onHideResetProfileBanner');
40 },
41
42 /** @override */
43 onShowResetProfileDialog: function() {
44 this.methodCalled('onShowResetProfileDialog');
45 },
46
47 /** @override */
48 showReportedSettings: function() {
49 this.methodCalled('showReportedSettings');
50 },
51
52 /** @override */
53 getTriggeredResetToolName: function() {
54 this.methodCalled('getTriggeredResetToolName');
55 return Promise.resolve('WonderfulAV');
56 },
57
58 /** @override */
59 onPowerwashDialogShow: function() {
60 this.methodCalled('onPowerwashDialogShow');
61 },
62 };
63
64 return {
65 TestResetBrowserProxy: TestResetBrowserProxy,
66 };
67 });
OLDNEW
« 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