Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / remoting / host / setup / mock_oauth_client.h
blobdb235a5fceb7d8a0437e0d9a65715b7251fd5a22
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_SETUP_MOCK_OAUTH_CLIENT_H_
6 #define REMOTING_HOST_SETUP_MOCK_OAUTH_CLIENT_H_
8 #include "remoting/host/setup/oauth_client.h"
10 namespace remoting {
12 class MockOAuthClient : public OAuthClient {
13 public:
14 MockOAuthClient(const std::string& user_email,
15 const std::string& refresh_token);
17 ~MockOAuthClient() override;
19 void GetCredentialsFromAuthCode(
20 const gaia::OAuthClientInfo& oauth_client_info,
21 const std::string& auth_code,
22 bool need_user_email,
23 CompletionCallback on_done) override;
25 private:
26 std::string user_email_;
27 std::string refresh_token_;
30 } // namespace remoting
32 #endif // REMOTING_HOST_SETUP_MOCK_OAUTH_CLIENT_H_