Clean up extension confirmation prompts and make them consistent between Views and...
[chromium-blink-merge.git] / remoting / host / fake_oauth_token_getter.h
blob59d6e5e9074b6420f964468bbbd317590903a3b5
1 // Copyright 2015 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.
5 #ifndef REMOTING_HOST_FAKE_OAUTH_TOKEN_GETTER_H_
6 #define REMOTING_HOST_FAKE_OAUTH_TOKEN_GETTER_H_
8 #include <string>
10 #include "base/callback.h"
11 #include "remoting/host/oauth_token_getter.h"
13 namespace remoting {
15 class FakeOAuthTokenGetter : public OAuthTokenGetter {
16 public:
17 FakeOAuthTokenGetter(Status status,
18 const std::string& user_email,
19 const std::string& access_token);
20 ~FakeOAuthTokenGetter() override;
22 // OAuthTokenGetter interface.
23 void CallWithToken(const TokenCallback& on_access_token) override;
25 private:
26 Status status_;
27 std::string user_email_;
28 std::string access_token_;
31 } // namespace remoting
33 #endif // REMOTING_HOST_FAKE_OAUTH_TOKEN_GETTER_H_