• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
3 // found in the LICENSE file.
4 
5 #ifndef CHROME_BROWSER_UI_WEBUI_IDENTITY_INTERNALS_UI_BROWSERTEST_H_
6 #define CHROME_BROWSER_UI_WEBUI_IDENTITY_INTERNALS_UI_BROWSERTEST_H_
7 
8 #include <string>
9 #include <vector>
10 
11 #include "chrome/test/base/web_ui_browser_test.h"
12 
13 class IdentityInternalsUIBrowserTest : public WebUIBrowserTest {
14  public:
15   IdentityInternalsUIBrowserTest();
16   virtual ~IdentityInternalsUIBrowserTest();
17 
18  protected:
19   void SetupTokenCache(int number_of_tokens);
20 
21   void SetupTokenCacheWithStoreApp();
22 
23  private:
24   void AddTokenToCache(const std::string token_id,
25                        const std::string extension_id,
26                        const std::vector<std::string>& scopes,
27                        int time_to_live);
28 
29   DISALLOW_COPY_AND_ASSIGN(IdentityInternalsUIBrowserTest);
30 };
31 
32 #endif  // CHROME_BROWSER_UI_WEBUI_IDENTITY_INTERNALS_UI_BROWSERTEST_H_
33