blob: 6532cd6c281eb87edfcbeb1cc34b6224452d9f1a [file] [log] [blame]
// 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.
/** @implements {settings.ProfileInfoBrowserProxy} */
class TestProfileInfoBrowserProxy extends TestBrowserProxy {
constructor() {
super([
'getProfileInfo',
'getProfileStatsCount',
]);
this.fakeProfileInfo = {
name: 'fakeName',
iconUrl: 'data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAE' +
'AAAICTAEAOw==',
};
}
/** @override */
getProfileInfo() {
this.methodCalled('getProfileInfo');
return Promise.resolve(this.fakeProfileInfo);
}
/** @override */
getProfileStatsCount() {
this.methodCalled('getProfileStatsCount');
}
}