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

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

Issue 1159623009: content: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test build fix. Created 5 years, 6 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 7
8 #include "base/message_loop/message_loop_proxy.h" 8 #include "base/single_thread_task_runner.h"
9 #include "content/public/browser/access_token_store.h" 9 #include "content/public/browser/access_token_store.h"
10 #include "testing/gmock/include/gmock/gmock.h" 10 #include "testing/gmock/include/gmock/gmock.h"
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 12
13 namespace content { 13 namespace content {
14 14
15 // A fake (non-persisted) access token store instance useful for testing. 15 // A fake (non-persisted) access token store instance useful for testing.
16 class FakeAccessTokenStore : public AccessTokenStore { 16 class FakeAccessTokenStore : public AccessTokenStore {
17 public: 17 public:
18 FakeAccessTokenStore(); 18 FakeAccessTokenStore();
(...skipping 16 matching lines...) Expand all
35 LoadAccessTokensCallbackType callback_; 35 LoadAccessTokensCallbackType callback_;
36 36
37 protected: 37 protected:
38 // Protected instead of private so we can have NiceMocks. 38 // Protected instead of private so we can have NiceMocks.
39 virtual ~FakeAccessTokenStore(); 39 virtual ~FakeAccessTokenStore();
40 40
41 private: 41 private:
42 // In some tests, NotifyDelegateTokensLoaded() is called on a thread 42 // In some tests, NotifyDelegateTokensLoaded() is called on a thread
43 // other than the originating thread, in which case we must post 43 // other than the originating thread, in which case we must post
44 // back to it. 44 // back to it.
45 base::MessageLoopProxy* originating_message_loop_; 45 base::SingleThreadTaskRunner* originating_task_runner_;
46 46
47 DISALLOW_COPY_AND_ASSIGN(FakeAccessTokenStore); 47 DISALLOW_COPY_AND_ASSIGN(FakeAccessTokenStore);
48 }; 48 };
49 49
50 } // namespace content 50 } // namespace content
51 51
52 #endif // CONTENT_BROWSER_GEOLOCATION_FAKE_ACCESS_TOKEN_STORE_H_ 52 #endif // CONTENT_BROWSER_GEOLOCATION_FAKE_ACCESS_TOKEN_STORE_H_
OLDNEW
« no previous file with comments | « content/browser/geofencing/mock_geofencing_service.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