| 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 // This file defines a unit test harness for the profile's token service. | 5 // This file defines a unit test harness for the profile's token service. |
| 6 | 6 |
| 7 #ifndef CHROME_BROWSER_SIGNIN_TOKEN_SERVICE_UNITTEST_H_ | 7 #ifndef CHROME_BROWSER_SIGNIN_TOKEN_SERVICE_UNITTEST_H_ |
| 8 #define CHROME_BROWSER_SIGNIN_TOKEN_SERVICE_UNITTEST_H_ | 8 #define CHROME_BROWSER_SIGNIN_TOKEN_SERVICE_UNITTEST_H_ |
| 9 | 9 |
| 10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 public: | 60 public: |
| 61 TokenServiceTestHarness(); | 61 TokenServiceTestHarness(); |
| 62 virtual ~TokenServiceTestHarness(); | 62 virtual ~TokenServiceTestHarness(); |
| 63 | 63 |
| 64 virtual void SetUp() OVERRIDE; | 64 virtual void SetUp() OVERRIDE; |
| 65 | 65 |
| 66 virtual void TearDown() OVERRIDE; | 66 virtual void TearDown() OVERRIDE; |
| 67 | 67 |
| 68 void WaitForDBLoadCompletion(); | 68 void WaitForDBLoadCompletion(); |
| 69 | 69 |
| 70 MessageLoopForUI message_loop_; | 70 base::MessageLoopForUI message_loop_; |
| 71 content::TestBrowserThread ui_thread_; // Mostly so DCHECKS pass. | 71 content::TestBrowserThread ui_thread_; // Mostly so DCHECKS pass. |
| 72 content::TestBrowserThread db_thread_; // WDS on here | 72 content::TestBrowserThread db_thread_; // WDS on here |
| 73 | 73 |
| 74 TokenService* service_; | 74 TokenService* service_; |
| 75 TokenAvailableTracker success_tracker_; | 75 TokenAvailableTracker success_tracker_; |
| 76 TokenFailedTracker failure_tracker_; | 76 TokenFailedTracker failure_tracker_; |
| 77 GaiaAuthConsumer::ClientLoginResult credentials_; | 77 GaiaAuthConsumer::ClientLoginResult credentials_; |
| 78 std::string oauth_token_; | 78 std::string oauth_token_; |
| 79 std::string oauth_secret_; | 79 std::string oauth_secret_; |
| 80 scoped_ptr<TestingProfile> profile_; | 80 scoped_ptr<TestingProfile> profile_; |
| 81 }; | 81 }; |
| 82 | 82 |
| 83 #endif // CHROME_BROWSER_SIGNIN_TOKEN_SERVICE_UNITTEST_H_ | 83 #endif // CHROME_BROWSER_SIGNIN_TOKEN_SERVICE_UNITTEST_H_ |
| OLD | NEW |