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

Side by Side Diff: content/browser/geolocation/fake_access_token_store.h

Issue 8997008: Move AccessTokenStore to Content API, now that it is a pure-virtual class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head (pure merge). Created 9 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CONTENT_BROWSER_GEOLOCATION_FAKE_ACCESS_TOKEN_STORE_H_ 5 #ifndef CONTENT_BROWSER_GEOLOCATION_FAKE_ACCESS_TOKEN_STORE_H_
6 #define CONTENT_BROWSER_GEOLOCATION_FAKE_ACCESS_TOKEN_STORE_H_ 6 #define CONTENT_BROWSER_GEOLOCATION_FAKE_ACCESS_TOKEN_STORE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/message_loop_proxy.h" 9 #include "base/message_loop_proxy.h"
10 #include "content/browser/geolocation/access_token_store.h" 10 #include "content/public/browser/access_token_store.h"
11 #include "testing/gmock/include/gmock/gmock.h" 11 #include "testing/gmock/include/gmock/gmock.h"
12 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
13 13
14 namespace content {
15
14 // A fake (non-persisted) access token store instance useful for testing. 16 // A fake (non-persisted) access token store instance useful for testing.
15 class FakeAccessTokenStore : public AccessTokenStore { 17 class FakeAccessTokenStore : public AccessTokenStore {
16 public: 18 public:
17 FakeAccessTokenStore(); 19 FakeAccessTokenStore();
18 20
19 void NotifyDelegateTokensLoaded(); 21 void NotifyDelegateTokensLoaded();
20 22
21 // AccessTokenStore 23 // AccessTokenStore
22 MOCK_METHOD1(LoadAccessTokens, 24 MOCK_METHOD1(LoadAccessTokens,
23 void(const LoadAccessTokensCallbackType& callback)); 25 void(const LoadAccessTokensCallbackType& callback));
(...skipping 12 matching lines...) Expand all
36 virtual ~FakeAccessTokenStore(); 38 virtual ~FakeAccessTokenStore();
37 39
38 // In some tests, NotifyDelegateTokensLoaded() is called on a thread 40 // In some tests, NotifyDelegateTokensLoaded() is called on a thread
39 // other than the originating thread, in which case we must post 41 // other than the originating thread, in which case we must post
40 // back to it. 42 // back to it.
41 base::MessageLoopProxy* originating_message_loop_; 43 base::MessageLoopProxy* originating_message_loop_;
42 44
43 DISALLOW_COPY_AND_ASSIGN(FakeAccessTokenStore); 45 DISALLOW_COPY_AND_ASSIGN(FakeAccessTokenStore);
44 }; 46 };
45 47
48 } // namespace content
49
46 #endif // CONTENT_BROWSER_GEOLOCATION_FAKE_ACCESS_TOKEN_STORE_H_ 50 #endif // CONTENT_BROWSER_GEOLOCATION_FAKE_ACCESS_TOKEN_STORE_H_
OLDNEW
« no previous file with comments | « content/browser/geolocation/arbitrator_dependency_factory.cc ('k') | content/browser/geolocation/fake_access_token_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698