| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CHROME_BROWSER_UI_WEBUI_IDENTITY_INTERNALS_UI_BROWSERTEST_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_IDENTITY_INTERNALS_IDENTITY_INTERNALS_UI_BROWSER
TEST_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_IDENTITY_INTERNALS_UI_BROWSERTEST_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_IDENTITY_INTERNALS_IDENTITY_INTERNALS_UI_BROWSER
TEST_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "chrome/test/base/web_ui_browser_test.h" | 11 #include "chrome/test/base/web_ui_browser_test.h" |
| 12 | 12 |
| 13 class IdentityInternalsUIBrowserTest : public WebUIBrowserTest { | 13 class IdentityInternalsUIBrowserTest : public WebUIBrowserTest { |
| 14 public: | 14 public: |
| 15 IdentityInternalsUIBrowserTest(); | 15 IdentityInternalsUIBrowserTest(); |
| 16 virtual ~IdentityInternalsUIBrowserTest(); | 16 virtual ~IdentityInternalsUIBrowserTest(); |
| 17 | 17 |
| 18 protected: | 18 protected: |
| 19 void SetupTokenCache(int number_of_tokens); | 19 void SetupTokenCache(int number_of_tokens); |
| 20 | 20 |
| 21 void SetupTokenCacheWithStoreApp(); | 21 void SetupTokenCacheWithStoreApp(); |
| 22 | 22 |
| 23 private: | 23 private: |
| 24 void AddTokenToCache(const std::string token_id, | 24 void AddTokenToCache(const std::string token_id, |
| 25 const std::string extension_id, | 25 const std::string extension_id, |
| 26 const std::vector<std::string>& scopes, | 26 const std::vector<std::string>& scopes, |
| 27 int time_to_live); | 27 int time_to_live); |
| 28 | 28 |
| 29 DISALLOW_COPY_AND_ASSIGN(IdentityInternalsUIBrowserTest); | 29 DISALLOW_COPY_AND_ASSIGN(IdentityInternalsUIBrowserTest); |
| 30 }; | 30 }; |
| 31 | 31 |
| 32 #endif // CHROME_BROWSER_UI_WEBUI_IDENTITY_INTERNALS_UI_BROWSERTEST_H_ | 32 #endif // CHROME_BROWSER_UI_WEBUI_IDENTITY_INTERNALS_IDENTITY_INTERNALS_UI_BROW
SERTEST_H_ |
| OLD | NEW |