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 #include <set> | 5 #include <set> |
6 #include <string> | 6 #include <string> |
7 #include <utility> | 7 #include <utility> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
12 #include "base/strings/string_util.h" | 12 #include "base/strings/string_util.h" |
13 #include "base/values.h" | 13 #include "base/values.h" |
14 #include "build/build_config.h" | 14 #include "build/build_config.h" |
15 #include "chrome/browser/chrome_notification_types.h" | 15 #include "chrome/browser/chrome_notification_types.h" |
16 #include "components/prefs/pref_service.h" | 16 #include "components/prefs/pref_service.h" |
17 #if defined(OS_CHROMEOS) | 17 #if defined(OS_CHROMEOS) |
18 #include "chrome/browser/chromeos/login/users/mock_user_manager.h" | 18 #include "chrome/browser/chromeos/login/users/mock_user_manager.h" |
19 #include "chrome/browser/chromeos/login/users/scoped_user_manager_enabler.h" | 19 #include "chrome/browser/chromeos/login/users/scoped_user_manager_enabler.h" |
20 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" | 20 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" |
21 #include "chrome/browser/chromeos/settings/stub_install_attributes.h" | 21 #include "chrome/browser/chromeos/settings/stub_install_attributes.h" |
22 #include "extensions/common/extension_builder.h" | 22 #include "extensions/common/extension_builder.h" |
23 #endif | 23 #endif |
24 #include "chrome/browser/extensions/api/identity/identity_api.h" | 24 #include "chrome/browser/extensions/api/identity/identity_api.h" |
25 #include "chrome/browser/extensions/api/identity/identity_constants.h" | 25 #include "chrome/browser/extensions/api/identity/identity_constants.h" |
| 26 #include "chrome/browser/extensions/api/identity/identity_get_auth_token_functio
n.h" |
26 #include "chrome/browser/extensions/api/identity/identity_get_profile_user_info_
function.h" | 27 #include "chrome/browser/extensions/api/identity/identity_get_profile_user_info_
function.h" |
27 #include "chrome/browser/extensions/api/identity/identity_launch_web_auth_flow_f
unction.h" | 28 #include "chrome/browser/extensions/api/identity/identity_launch_web_auth_flow_f
unction.h" |
28 #include "chrome/browser/extensions/api/identity/identity_remove_cached_auth_tok
en_function.h" | 29 #include "chrome/browser/extensions/api/identity/identity_remove_cached_auth_tok
en_function.h" |
29 #include "chrome/browser/extensions/component_loader.h" | 30 #include "chrome/browser/extensions/component_loader.h" |
30 #include "chrome/browser/extensions/extension_apitest.h" | 31 #include "chrome/browser/extensions/extension_apitest.h" |
31 #include "chrome/browser/extensions/extension_browsertest.h" | 32 #include "chrome/browser/extensions/extension_browsertest.h" |
32 #include "chrome/browser/extensions/extension_function_test_utils.h" | 33 #include "chrome/browser/extensions/extension_function_test_utils.h" |
33 #include "chrome/browser/extensions/extension_service.h" | 34 #include "chrome/browser/extensions/extension_service.h" |
34 #include "chrome/browser/profiles/profile.h" | 35 #include "chrome/browser/profiles/profile.h" |
35 #include "chrome/browser/signin/account_tracker_service_factory.h" | 36 #include "chrome/browser/signin/account_tracker_service_factory.h" |
(...skipping 1820 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1856 EXPECT_EQ(std::string("https://abcdefghij.chromiumapp.org/callback#test"), | 1857 EXPECT_EQ(std::string("https://abcdefghij.chromiumapp.org/callback#test"), |
1857 url); | 1858 url); |
1858 } | 1859 } |
1859 | 1860 |
1860 } // namespace extensions | 1861 } // namespace extensions |
1861 | 1862 |
1862 // Tests the chrome.identity API implemented by custom JS bindings . | 1863 // Tests the chrome.identity API implemented by custom JS bindings . |
1863 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, ChromeIdentityJsBindings) { | 1864 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, ChromeIdentityJsBindings) { |
1864 ASSERT_TRUE(RunExtensionTest("identity/js_bindings")) << message_; | 1865 ASSERT_TRUE(RunExtensionTest("identity/js_bindings")) << message_; |
1865 } | 1866 } |
OLD | NEW |