blob: 283d10ea6ecced071cc939c7fbb107b2a03d9b49 [file] [log] [blame]
[email protected]d66eac42014-07-14 23:48:301// Copyright 2014 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#ifndef COMPONENTS_USER_MANAGER_USER_INFO_IMPL_H_
6#define COMPONENTS_USER_MANAGER_USER_INFO_IMPL_H_
7
8#include <string>
9
avi5dd91f82015-12-25 22:30:4610#include "base/macros.h"
[email protected]d66eac42014-07-14 23:48:3011#include "base/strings/string16.h"
Alexander Alekseev3f09a8f2018-05-03 02:52:1012#include "components/account_id/account_id.h"
[email protected]d66eac42014-07-14 23:48:3013#include "components/user_manager/user_info.h"
14#include "components/user_manager/user_manager_export.h"
15#include "ui/gfx/image/image_skia.h"
16
17namespace user_manager {
18
19// Stub implementation of UserInfo interface. Used in tests.
20class USER_MANAGER_EXPORT UserInfoImpl : public UserInfo {
21 public:
22 UserInfoImpl();
dcheng30a1b1542014-10-29 21:27:5023 ~UserInfoImpl() override;
[email protected]d66eac42014-07-14 23:48:3024
25 // UserInfo:
dcheng30a1b1542014-10-29 21:27:5026 base::string16 GetDisplayName() const override;
27 base::string16 GetGivenName() const override;
alematebc19dbb2016-11-01 19:49:0728 std::string GetDisplayEmail() const override;
hcarmonab1723ed32015-11-18 21:52:5829 const AccountId& GetAccountId() const override;
dcheng30a1b1542014-10-29 21:27:5030 const gfx::ImageSkia& GetImage() const override;
[email protected]d66eac42014-07-14 23:48:3031
32 private:
hcarmonab1723ed32015-11-18 21:52:5833 const AccountId account_id_;
[email protected]d66eac42014-07-14 23:48:3034 gfx::ImageSkia user_image_;
35
36 DISALLOW_COPY_AND_ASSIGN(UserInfoImpl);
37};
38
39} // namespace user_manager
40
41#endif // COMPONENTS_USER_MANAGER_USER_INFO_IMPL_H_