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

Side by Side Diff: chrome/browser/ui/login/login_prompt_browsertest.cc

Issue 8342048: Make NotificationService an interface in the content namespace, and switch callers to use it. Mov... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <algorithm> 5 #include <algorithm>
6 #include <list> 6 #include <list>
7 #include <map> 7 #include <map>
8 8
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/prerender/prerender_manager.h" 10 #include "chrome/browser/prerender/prerender_manager.h"
11 #include "chrome/browser/ui/browser.h" 11 #include "chrome/browser/ui/browser.h"
12 #include "chrome/browser/ui/login/login_prompt.h" 12 #include "chrome/browser/ui/login/login_prompt.h"
13 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 13 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
14 #include "chrome/common/chrome_notification_types.h" 14 #include "chrome/common/chrome_notification_types.h"
15 #include "chrome/test/base/in_process_browser_test.h" 15 #include "chrome/test/base/in_process_browser_test.h"
16 #include "chrome/test/base/ui_test_utils.h" 16 #include "chrome/test/base/ui_test_utils.h"
17 #include "content/browser/browser_thread.h" 17 #include "content/browser/browser_thread.h"
18 #include "content/browser/renderer_host/resource_dispatcher_host.h" 18 #include "content/browser/renderer_host/resource_dispatcher_host.h"
19 #include "content/common/notification_service.h" 19 #include "content/public/browser/notification_details.h"
20 #include "content/public/browser/notification_source.h"
20 #include "net/base/auth.h" 21 #include "net/base/auth.h"
21 #include "net/base/mock_host_resolver.h" 22 #include "net/base/mock_host_resolver.h"
22 23
23 namespace { 24 namespace {
24 25
25 class LoginPromptBrowserTest : public InProcessBrowserTest { 26 class LoginPromptBrowserTest : public InProcessBrowserTest {
26 public: 27 public:
27 LoginPromptBrowserTest() 28 LoginPromptBrowserTest()
28 : bad_password_(L"incorrect"), bad_username_(L"nouser") { 29 : bad_password_(L"incorrect"), bad_username_(L"nouser") {
29 set_show_window(true); 30 set_show_window(true);
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 handler->CancelAuth(); 531 handler->CancelAuth();
531 auth_cancelled_waiter.Wait(); 532 auth_cancelled_waiter.Wait();
532 } 533 }
533 } 534 }
534 535
535 EXPECT_EQ(1, observer.auth_needed_count_); 536 EXPECT_EQ(1, observer.auth_needed_count_);
536 EXPECT_TRUE(test_server()->Stop()); 537 EXPECT_TRUE(test_server()->Stop());
537 } 538 }
538 539
539 } // namespace 540 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/ui/login/login_prompt.cc ('k') | chrome/browser/ui/omnibox/omnibox_view_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698