Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Side by Side Diff: remoting/base/mock_oauth_client.h

Issue 2661153003: Moving oauth code from host to base to allow code sharing between host and client. (Closed)
Patch Set: Merge branch 'master' into auth_token Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « remoting/base/logging.h ('k') | remoting/base/mock_oauth_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef REMOTING_HOST_SETUP_MOCK_OAUTH_CLIENT_H_ 5 #ifndef REMOTING_BASE_MOCK_OAUTH_CLIENT_H_
6 #define REMOTING_HOST_SETUP_MOCK_OAUTH_CLIENT_H_ 6 #define REMOTING_BASE_MOCK_OAUTH_CLIENT_H_
7 7
8 #include "remoting/host/setup/oauth_client.h" 8 #include "remoting/base/oauth_client.h"
9 9
10 namespace remoting { 10 namespace remoting {
11 11
12 class MockOAuthClient : public OAuthClient { 12 class MockOAuthClient : public OAuthClient {
13 public: 13 public:
14 MockOAuthClient(const std::string& user_email, 14 MockOAuthClient(const std::string& user_email,
15 const std::string& refresh_token); 15 const std::string& refresh_token);
16 16
17 ~MockOAuthClient() override; 17 ~MockOAuthClient() override;
18 18
19 void GetCredentialsFromAuthCode( 19 void GetCredentialsFromAuthCode(
20 const gaia::OAuthClientInfo& oauth_client_info, 20 const gaia::OAuthClientInfo& oauth_client_info,
21 const std::string& auth_code, 21 const std::string& auth_code,
22 bool need_user_email, 22 bool need_user_email,
23 CompletionCallback on_done) override; 23 CompletionCallback on_done) override;
24 24
25 private: 25 private:
26 std::string user_email_; 26 std::string user_email_;
27 std::string refresh_token_; 27 std::string refresh_token_;
28 }; 28 };
29 29
30 } // namespace remoting 30 } // namespace remoting
31 31
32 #endif // REMOTING_HOST_SETUP_MOCK_OAUTH_CLIENT_H_ 32 #endif // REMOTING_BASE_MOCK_OAUTH_CLIENT_H_
OLDNEW
« no previous file with comments | « remoting/base/logging.h ('k') | remoting/base/mock_oauth_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698