Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(278)

Side by Side Diff: chrome/browser/extensions/api/identity/identity_apitest.cc

Issue 671553002: Move extensions manifest handler for OAuth2 to //extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 12 matching lines...) Expand all
23 #include "chrome/browser/signin/fake_account_reconcilor.h" 23 #include "chrome/browser/signin/fake_account_reconcilor.h"
24 #include "chrome/browser/signin/fake_profile_oauth2_token_service.h" 24 #include "chrome/browser/signin/fake_profile_oauth2_token_service.h"
25 #include "chrome/browser/signin/fake_profile_oauth2_token_service_builder.h" 25 #include "chrome/browser/signin/fake_profile_oauth2_token_service_builder.h"
26 #include "chrome/browser/signin/fake_signin_manager.h" 26 #include "chrome/browser/signin/fake_signin_manager.h"
27 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" 27 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h"
28 #include "chrome/browser/signin/signin_manager_factory.h" 28 #include "chrome/browser/signin/signin_manager_factory.h"
29 #include "chrome/browser/ui/browser.h" 29 #include "chrome/browser/ui/browser.h"
30 #include "chrome/browser/ui/browser_window.h" 30 #include "chrome/browser/ui/browser_window.h"
31 #include "chrome/common/chrome_switches.h" 31 #include "chrome/common/chrome_switches.h"
32 #include "chrome/common/extensions/api/identity.h" 32 #include "chrome/common/extensions/api/identity.h"
33 #include "chrome/common/extensions/api/identity/oauth2_manifest_handler.h"
34 #include "chrome/test/base/in_process_browser_test.h" 33 #include "chrome/test/base/in_process_browser_test.h"
35 #include "chrome/test/base/test_switches.h" 34 #include "chrome/test/base/test_switches.h"
36 #include "components/crx_file/id_util.h" 35 #include "components/crx_file/id_util.h"
37 #include "components/signin/core/browser/signin_manager.h" 36 #include "components/signin/core/browser/signin_manager.h"
38 #include "components/signin/core/common/profile_management_switches.h" 37 #include "components/signin/core/common/profile_management_switches.h"
39 #include "components/signin/core/common/signin_pref_names.h" 38 #include "components/signin/core/common/signin_pref_names.h"
40 #include "content/public/browser/notification_service.h" 39 #include "content/public/browser/notification_service.h"
41 #include "content/public/browser/notification_source.h" 40 #include "content/public/browser/notification_source.h"
42 #include "content/public/test/test_utils.h" 41 #include "content/public/test/test_utils.h"
43 #include "extensions/browser/guest_view/guest_view_base.h" 42 #include "extensions/browser/guest_view/guest_view_base.h"
43 #include "extensions/common/manifest_handlers/oauth2_manifest_handler.h"
44 #include "extensions/common/test_util.h" 44 #include "extensions/common/test_util.h"
45 #include "google_apis/gaia/google_service_auth_error.h" 45 #include "google_apis/gaia/google_service_auth_error.h"
46 #include "google_apis/gaia/oauth2_mint_token_flow.h" 46 #include "google_apis/gaia/oauth2_mint_token_flow.h"
47 #include "net/test/spawned_test_server/spawned_test_server.h" 47 #include "net/test/spawned_test_server/spawned_test_server.h"
48 #include "testing/gmock/include/gmock/gmock.h" 48 #include "testing/gmock/include/gmock/gmock.h"
49 #include "testing/gtest/include/gtest/gtest.h" 49 #include "testing/gtest/include/gtest/gtest.h"
50 #include "url/gurl.h" 50 #include "url/gurl.h"
51 51
52 using testing::_; 52 using testing::_;
53 using testing::Return; 53 using testing::Return;
(...skipping 1759 matching lines...) Expand 10 before | Expand all | Expand 10 after
1813 EXPECT_EQ(std::string("https://abcdefghij.chromiumapp.org/callback#test"), 1813 EXPECT_EQ(std::string("https://abcdefghij.chromiumapp.org/callback#test"),
1814 url); 1814 url);
1815 } 1815 }
1816 1816
1817 } // namespace extensions 1817 } // namespace extensions
1818 1818
1819 // Tests the chrome.identity API implemented by custom JS bindings . 1819 // Tests the chrome.identity API implemented by custom JS bindings .
1820 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, ChromeIdentityJsBindings) { 1820 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, ChromeIdentityJsBindings) {
1821 ASSERT_TRUE(RunExtensionTest("identity/js_bindings")) << message_; 1821 ASSERT_TRUE(RunExtensionTest("identity/js_bindings")) << message_;
1822 } 1822 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/identity/identity_api.cc ('k') | chrome/browser/signin/easy_unlock_toggle_flow.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698