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

Side by Side Diff: remoting/test/refresh_token_store.h

Issue 880273006: Adding the AccessTokenFetcher and Environment class to the app remoting test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing last round of CR feedback Created 5 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
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_TEST_REFRESH_TOKEN_STORE_H_
6 #define REMOTING_TEST_REFRESH_TOKEN_STORE_H_
7
8 #include <string>
9
10 #include "base/memory/scoped_ptr.h"
11
12 namespace remoting {
13 namespace test {
14
15 // Used to store and retrieve refresh tokens. This interface is provided to
16 // allow for stubbing out the storage mechanism for testing.
17 class RefreshTokenStore {
18 public:
19 RefreshTokenStore() {}
20 virtual ~RefreshTokenStore() {}
21
22 virtual std::string FetchRefreshToken(
23 const std::string& user_name) = 0;
24 virtual bool StoreRefreshToken(
25 const std::string& user_name,
26 const std::string& refresh_token) = 0;
27
28 static scoped_ptr<RefreshTokenStore> OnDisk();
Wez 2015/02/23 20:17:15 nit: Add a comment to explain any specific propert
joedow 2015/02/24 02:01:24 Done.
29 };
30
31 } // namespace test
32 } // namespace remoting
33
34 #endif // REMOTING_TEST_REFRESH_TOKEN_STORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698