chromium/chrome/test/data/webui/chromeos/settings/os_reset_page/test_os_reset_browser_proxy.ts

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import {OsResetBrowserProxy} from 'chrome://os-settings/os_settings.js';
import {TestBrowserProxy} from 'chrome://webui-test/test_browser_proxy.js';

export class TestOsResetBrowserProxy extends TestBrowserProxy implements
    OsResetBrowserProxy {
  constructor() {
    super([
      'requestFactoryResetRestart',
      'onShowSanitizeDialog',
      'performSanitizeSettings',
    ]);
  }

  requestFactoryResetRestart(): void {
    this.methodCalled('requestFactoryResetRestart');
  }

  onShowSanitizeDialog(): void {
    this.methodCalled('onShowSanitizeDialog');
  }

  performSanitizeSettings(): void {
    this.methodCalled('performSanitizeSettings');
  }
}