OLD | NEW |
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 #pragma once | |
8 | 7 |
9 #include "base/message_loop_proxy.h" | 8 #include "base/message_loop_proxy.h" |
10 #include "content/public/browser/access_token_store.h" | 9 #include "content/public/browser/access_token_store.h" |
11 #include "testing/gmock/include/gmock/gmock.h" | 10 #include "testing/gmock/include/gmock/gmock.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
13 | 12 |
14 namespace content { | 13 namespace content { |
15 | 14 |
16 // A fake (non-persisted) access token store instance useful for testing. | 15 // A fake (non-persisted) access token store instance useful for testing. |
17 class FakeAccessTokenStore : public AccessTokenStore { | 16 class FakeAccessTokenStore : public AccessTokenStore { |
(...skipping 25 matching lines...) Expand all Loading... |
43 // other than the originating thread, in which case we must post | 42 // other than the originating thread, in which case we must post |
44 // back to it. | 43 // back to it. |
45 base::MessageLoopProxy* originating_message_loop_; | 44 base::MessageLoopProxy* originating_message_loop_; |
46 | 45 |
47 DISALLOW_COPY_AND_ASSIGN(FakeAccessTokenStore); | 46 DISALLOW_COPY_AND_ASSIGN(FakeAccessTokenStore); |
48 }; | 47 }; |
49 | 48 |
50 } // namespace content | 49 } // namespace content |
51 | 50 |
52 #endif // CONTENT_BROWSER_GEOLOCATION_FAKE_ACCESS_TOKEN_STORE_H_ | 51 #endif // CONTENT_BROWSER_GEOLOCATION_FAKE_ACCESS_TOKEN_STORE_H_ |
OLD | NEW |