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

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

Issue 1102173002: Move GuestView layer in browser to components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test change to build Created 5 years, 8 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 16 matching lines...) Expand all
27 #include "chrome/browser/signin/gaia_cookie_manager_service_factory.h" 27 #include "chrome/browser/signin/gaia_cookie_manager_service_factory.h"
28 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" 28 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h"
29 #include "chrome/browser/signin/signin_manager_factory.h" 29 #include "chrome/browser/signin/signin_manager_factory.h"
30 #include "chrome/browser/ui/browser.h" 30 #include "chrome/browser/ui/browser.h"
31 #include "chrome/browser/ui/browser_window.h" 31 #include "chrome/browser/ui/browser_window.h"
32 #include "chrome/common/chrome_switches.h" 32 #include "chrome/common/chrome_switches.h"
33 #include "chrome/common/extensions/api/identity.h" 33 #include "chrome/common/extensions/api/identity.h"
34 #include "chrome/test/base/in_process_browser_test.h" 34 #include "chrome/test/base/in_process_browser_test.h"
35 #include "chrome/test/base/test_switches.h" 35 #include "chrome/test/base/test_switches.h"
36 #include "components/crx_file/id_util.h" 36 #include "components/crx_file/id_util.h"
37 #include "components/guest_view/browser/guest_view_base.h"
37 #include "components/signin/core/browser/account_tracker_service.h" 38 #include "components/signin/core/browser/account_tracker_service.h"
38 #include "components/signin/core/browser/signin_manager.h" 39 #include "components/signin/core/browser/signin_manager.h"
39 #include "components/signin/core/common/profile_management_switches.h" 40 #include "components/signin/core/common/profile_management_switches.h"
40 #include "components/signin/core/common/signin_pref_names.h" 41 #include "components/signin/core/common/signin_pref_names.h"
41 #include "content/public/browser/notification_service.h" 42 #include "content/public/browser/notification_service.h"
42 #include "content/public/browser/notification_source.h" 43 #include "content/public/browser/notification_source.h"
43 #include "content/public/test/test_utils.h" 44 #include "content/public/test/test_utils.h"
44 #include "extensions/browser/api_test_utils.h" 45 #include "extensions/browser/api_test_utils.h"
45 #include "extensions/browser/guest_view/guest_view_base.h"
46 #include "extensions/common/manifest_handlers/oauth2_manifest_handler.h" 46 #include "extensions/common/manifest_handlers/oauth2_manifest_handler.h"
47 #include "extensions/common/test_util.h" 47 #include "extensions/common/test_util.h"
48 #include "google_apis/gaia/google_service_auth_error.h" 48 #include "google_apis/gaia/google_service_auth_error.h"
49 #include "google_apis/gaia/oauth2_mint_token_flow.h" 49 #include "google_apis/gaia/oauth2_mint_token_flow.h"
50 #include "net/test/spawned_test_server/spawned_test_server.h" 50 #include "net/test/spawned_test_server/spawned_test_server.h"
51 #include "testing/gmock/include/gmock/gmock.h" 51 #include "testing/gmock/include/gmock/gmock.h"
52 #include "testing/gtest/include/gtest/gtest.h" 52 #include "testing/gtest/include/gtest/gtest.h"
53 #include "url/gurl.h" 53 #include "url/gurl.h"
54 54
55 using guestview::GuestViewBase;
55 using testing::_; 56 using testing::_;
56 using testing::Return; 57 using testing::Return;
57 using testing::ReturnRef; 58 using testing::ReturnRef;
58 59
59 namespace extensions { 60 namespace extensions {
60 61
61 namespace { 62 namespace {
62 63
63 namespace errors = identity_constants; 64 namespace errors = identity_constants;
64 namespace utils = extension_function_test_utils; 65 namespace utils = extension_function_test_utils;
(...skipping 1760 matching lines...) Expand 10 before | Expand all | Expand 10 after
1825 EXPECT_EQ(std::string("https://abcdefghij.chromiumapp.org/callback#test"), 1826 EXPECT_EQ(std::string("https://abcdefghij.chromiumapp.org/callback#test"),
1826 url); 1827 url);
1827 } 1828 }
1828 1829
1829 } // namespace extensions 1830 } // namespace extensions
1830 1831
1831 // Tests the chrome.identity API implemented by custom JS bindings . 1832 // Tests the chrome.identity API implemented by custom JS bindings .
1832 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, ChromeIdentityJsBindings) { 1833 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, ChromeIdentityJsBindings) {
1833 ASSERT_TRUE(RunExtensionTest("identity/js_bindings")) << message_; 1834 ASSERT_TRUE(RunExtensionTest("identity/js_bindings")) << message_;
1834 } 1835 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698