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

Side by Side Diff: remoting/host/setup/mock_oauth_client.h

Issue 1099553003: Added unit tests for getCredentialsFromAuthCode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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
OLDNEW
(Empty)
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.
4
5 #ifndef REMOTING_HOST_SETUP_MOCK_OAUTH_CLIENT
Lambros 2015/04/24 18:15:50 nit: REMOTING_HOST_SETUP_MOCK_OAUTH_CLIENT_H_
John Williams 2015/04/24 21:05:13 Done.
6 #define REMOTING_HOST_SETUP_MOCK_OAUTH_CLIENT
7
8 #include "remoting/host/setup/oauth_client.h"
9
10 namespace remoting {
11
12 class MockOAuthClient : public OAuthClient {
13 public:
14 MockOAuthClient(const std::string& user_email,
15 const std::string& refresh_token) :
16 user_email_(user_email), refresh_token_(refresh_token) {}
Lambros 2015/04/24 18:15:50 Style nit - move ctor to .cc file. See "Stop inlin
John Williams 2015/04/24 21:05:13 Done.
17
18 ~MockOAuthClient() override;
Lambros 2015/04/24 18:15:50 nit: add blank line after dtor.
John Williams 2015/04/24 21:05:13 Done.
19 void GetCredentialsFromAuthCode(
20 const gaia::OAuthClientInfo& oauth_client_info,
21 const std::string& auth_code,
22 CompletionCallback on_done) override;
23
24 private:
25 std::string user_email_;
26 std::string refresh_token_;
27 };
28
29 } // namespace remoting
30
31 #endif // REMOTING_HOST_SETUP_MOCK_OAUTH_CLIENT
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698