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

Unified Diff: chrome/browser/ui/webui/signin/inline_login_ui_browsertest.cc

Issue 1984863002: Clean up LoginUIService. Remove Singleton behavior from PeopleHandler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix merge issue Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/signin/inline_login_ui_browsertest.cc
diff --git a/chrome/browser/ui/webui/signin/inline_login_ui_browsertest.cc b/chrome/browser/ui/webui/signin/inline_login_ui_browsertest.cc
index 46e3b03f001aaa946b31b046aaa58e71e8721ec3..0cd5e10be9c0318d4e295e0d512f97625bf7b1e8 100644
--- a/chrome/browser/ui/webui/signin/inline_login_ui_browsertest.cc
+++ b/chrome/browser/ui/webui/signin/inline_login_ui_browsertest.cc
@@ -122,11 +122,6 @@ class FooWebUIProvider
const GURL& url));
};
-class MockLoginUIObserver : public LoginUIService::Observer {
- public:
- MOCK_METHOD0(OnUntrustedLoginUIShown, void());
-};
-
const char kFooWebUIURL[] = "chrome://foo/";
bool AddToSet(std::set<content::WebContents*>* set,
@@ -860,35 +855,3 @@ IN_PROC_BROWSER_TEST_F(InlineLoginUISafeIframeBrowserTest,
EXPECT_EQ(GURL("about:blank"), contents->GetVisibleURL());
}
-
-// Flaky on win_chromium_x64_rel_ng: http://crbug605357
-#if !defined(OS_WIN)
-IN_PROC_BROWSER_TEST_F(InlineLoginUISafeIframeBrowserTest,
- ConfirmationRequiredForNonsecureSignin) {
- FakeGaia fake_gaia;
- fake_gaia.Initialize();
-
- embedded_test_server()->RegisterRequestHandler(
- base::Bind(&FakeGaia::HandleRequest,
- base::Unretained(&fake_gaia)));
- fake_gaia.SetFakeMergeSessionParams(
- "email@gmail.com", "fake-sid-cookie", "fake-lsid-cookie");
-
- // Navigates to the Chrome signin page which loads the fake gaia auth page.
- // Since the fake gaia auth page is served over HTTP, thus expects to see an
- // untrusted signin confirmation dialog upon submitting credentials below.
- ui_test_utils::NavigateToURL(browser(), GetSigninPromoURL());
- WaitUntilUIReady(browser());
-
- MockLoginUIObserver observer;
- LoginUIServiceFactory::GetForProfile(browser()->profile())
- ->AddObserver(&observer);
- base::RunLoop run_loop;
- EXPECT_CALL(observer, OnUntrustedLoginUIShown())
- .WillOnce(InvokeWithoutArgs(&run_loop, &base::RunLoop::Quit));
-
- ExecuteJsToSigninInSigninFrame(browser(), "email@gmail.com", "password");
- run_loop.Run();
- base::RunLoop().RunUntilIdle();
-}
-#endif // OS_WIN
« no previous file with comments | « chrome/browser/ui/webui/settings/people_handler.cc ('k') | chrome/browser/ui/webui/signin/login_ui_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698