| 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 <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/prefs/pref_service.h" | 10 #include "base/prefs/pref_service.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 #include "chrome/test/base/test_switches.h" | 36 #include "chrome/test/base/test_switches.h" |
| 37 #include "components/signin/core/browser/signin_manager.h" | 37 #include "components/signin/core/browser/signin_manager.h" |
| 38 #include "components/signin/core/common/profile_management_switches.h" | 38 #include "components/signin/core/common/profile_management_switches.h" |
| 39 #include "components/signin/core/common/signin_pref_names.h" | 39 #include "components/signin/core/common/signin_pref_names.h" |
| 40 #include "content/public/browser/notification_service.h" | 40 #include "content/public/browser/notification_service.h" |
| 41 #include "content/public/browser/notification_source.h" | 41 #include "content/public/browser/notification_source.h" |
| 42 #include "content/public/test/test_utils.h" | 42 #include "content/public/test/test_utils.h" |
| 43 #include "extensions/common/id_util.h" | 43 #include "extensions/common/id_util.h" |
| 44 #include "google_apis/gaia/google_service_auth_error.h" | 44 #include "google_apis/gaia/google_service_auth_error.h" |
| 45 #include "google_apis/gaia/oauth2_mint_token_flow.h" | 45 #include "google_apis/gaia/oauth2_mint_token_flow.h" |
| 46 #include "grit/browser_resources.h" | |
| 47 #include "net/test/spawned_test_server/spawned_test_server.h" | 46 #include "net/test/spawned_test_server/spawned_test_server.h" |
| 48 #include "testing/gmock/include/gmock/gmock.h" | 47 #include "testing/gmock/include/gmock/gmock.h" |
| 49 #include "testing/gtest/include/gtest/gtest.h" | 48 #include "testing/gtest/include/gtest/gtest.h" |
| 50 #include "url/gurl.h" | 49 #include "url/gurl.h" |
| 51 | 50 |
| 52 using testing::_; | 51 using testing::_; |
| 53 using testing::Return; | 52 using testing::Return; |
| 54 using testing::ReturnRef; | 53 using testing::ReturnRef; |
| 55 | 54 |
| 56 namespace extensions { | 55 namespace extensions { |
| (...skipping 1763 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1820 EXPECT_EQ(std::string("https://abcdefghij.chromiumapp.org/callback#test"), | 1819 EXPECT_EQ(std::string("https://abcdefghij.chromiumapp.org/callback#test"), |
| 1821 url); | 1820 url); |
| 1822 } | 1821 } |
| 1823 | 1822 |
| 1824 } // namespace extensions | 1823 } // namespace extensions |
| 1825 | 1824 |
| 1826 // Tests the chrome.identity API implemented by custom JS bindings . | 1825 // Tests the chrome.identity API implemented by custom JS bindings . |
| 1827 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, ChromeIdentityJsBindings) { | 1826 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, ChromeIdentityJsBindings) { |
| 1828 ASSERT_TRUE(RunExtensionTest("identity/js_bindings")) << message_; | 1827 ASSERT_TRUE(RunExtensionTest("identity/js_bindings")) << message_; |
| 1829 } | 1828 } |
| OLD | NEW |