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/prefs/pref_service.h" | |
12 #include "base/strings/string_util.h" | 11 #include "base/strings/string_util.h" |
13 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
14 #include "base/values.h" | 13 #include "base/values.h" |
15 #include "build/build_config.h" | 14 #include "build/build_config.h" |
16 #include "chrome/browser/chrome_notification_types.h" | 15 #include "chrome/browser/chrome_notification_types.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/policy/stub_enterprise_install_attributes.h" | 21 #include "chrome/browser/chromeos/policy/stub_enterprise_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/component_loader.h" | 25 #include "chrome/browser/extensions/component_loader.h" |
26 #include "chrome/browser/extensions/extension_apitest.h" | 26 #include "chrome/browser/extensions/extension_apitest.h" |
(...skipping 1894 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1921 EXPECT_EQ(std::string("https://abcdefghij.chromiumapp.org/callback#test"), | 1921 EXPECT_EQ(std::string("https://abcdefghij.chromiumapp.org/callback#test"), |
1922 url); | 1922 url); |
1923 } | 1923 } |
1924 | 1924 |
1925 } // namespace extensions | 1925 } // namespace extensions |
1926 | 1926 |
1927 // Tests the chrome.identity API implemented by custom JS bindings . | 1927 // Tests the chrome.identity API implemented by custom JS bindings . |
1928 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, ChromeIdentityJsBindings) { | 1928 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, ChromeIdentityJsBindings) { |
1929 ASSERT_TRUE(RunExtensionTest("identity/js_bindings")) << message_; | 1929 ASSERT_TRUE(RunExtensionTest("identity/js_bindings")) << message_; |
1930 } | 1930 } |
OLD | NEW |