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

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

Issue 6657003: Update a bunch of files to the new location of notification files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 9 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
« no previous file with comments | « chrome/browser/ui/login/login_prompt.cc ('k') | chrome/browser/ui/options/options_page_base.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/ui/browser.h" 10 #include "chrome/browser/ui/browser.h"
11 #include "chrome/browser/ui/login/login_prompt.h" 11 #include "chrome/browser/ui/login/login_prompt.h"
12 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 12 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
13 #include "chrome/common/notification_service.h"
14 #include "chrome/test/in_process_browser_test.h" 13 #include "chrome/test/in_process_browser_test.h"
15 #include "chrome/test/ui_test_utils.h" 14 #include "chrome/test/ui_test_utils.h"
16 #include "content/browser/browser_thread.h" 15 #include "content/browser/browser_thread.h"
17 #include "content/browser/renderer_host/resource_dispatcher_host.h" 16 #include "content/browser/renderer_host/resource_dispatcher_host.h"
17 #include "content/common/notification_service.h"
18 #include "net/base/auth.h" 18 #include "net/base/auth.h"
19 19
20 namespace { 20 namespace {
21 21
22 class LoginPromptBrowserTest : public InProcessBrowserTest { 22 class LoginPromptBrowserTest : public InProcessBrowserTest {
23 public: 23 public:
24 LoginPromptBrowserTest() 24 LoginPromptBrowserTest()
25 : bad_password_(L"incorrect"), bad_username_(L"nouser") { 25 : bad_password_(L"incorrect"), bad_username_(L"nouser") {
26 set_show_window(true); 26 set_show_window(true);
27 27
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 EXPECT_EQ(1, n_handlers); 405 EXPECT_EQ(1, n_handlers);
406 EXPECT_LT(0, observer.auth_needed_count_); 406 EXPECT_LT(0, observer.auth_needed_count_);
407 EXPECT_EQ(0, observer.auth_cancelled_count_); 407 EXPECT_EQ(0, observer.auth_cancelled_count_);
408 EXPECT_EQ(observer.auth_needed_count_, observer.auth_supplied_count_); 408 EXPECT_EQ(observer.auth_needed_count_, observer.auth_supplied_count_);
409 LOG(INFO) << "Waiting for LOAD_STOP"; 409 LOG(INFO) << "Waiting for LOAD_STOP";
410 load_stop_waiter.Wait(); 410 load_stop_waiter.Wait();
411 EXPECT_TRUE(test_server()->Stop()); 411 EXPECT_TRUE(test_server()->Stop());
412 LOG(INFO) << "Done with test"; 412 LOG(INFO) << "Done with test";
413 } 413 }
414 } // namespace 414 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/ui/login/login_prompt.cc ('k') | chrome/browser/ui/options/options_page_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698