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

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

Issue 10500016: Move test_browser_thread.h from content\test to content\public\test. This way we can enforce that i… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
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 <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/public/browser/notification_details.h" 17 #include "content/public/browser/notification_details.h"
18 #include "content/public/browser/notification_source.h" 18 #include "content/public/browser/notification_source.h"
19 #include "content/public/browser/web_contents.h" 19 #include "content/public/browser/web_contents.h"
20 #include "content/test/test_browser_thread.h" 20 #include "content/public/test/test_browser_thread.h"
21 #include "net/base/auth.h" 21 #include "net/base/auth.h"
22 #include "net/base/mock_host_resolver.h" 22 #include "net/base/mock_host_resolver.h"
23 23
24 using content::NavigationController; 24 using content::NavigationController;
25 using content::OpenURLParams; 25 using content::OpenURLParams;
26 using content::Referrer; 26 using content::Referrer;
27 27
28 namespace { 28 namespace {
29 29
30 class LoginPromptBrowserTest : public InProcessBrowserTest { 30 class LoginPromptBrowserTest : public InProcessBrowserTest {
(...skipping 969 matching lines...) Expand 10 before | Expand all | Expand 10 after
1000 EXPECT_EQ(1, observer.auth_needed_count_); 1000 EXPECT_EQ(1, observer.auth_needed_count_);
1001 EXPECT_EQ(1, observer.auth_supplied_count_); 1001 EXPECT_EQ(1, observer.auth_supplied_count_);
1002 EXPECT_EQ(0, observer.auth_cancelled_count_); 1002 EXPECT_EQ(0, observer.auth_cancelled_count_);
1003 EXPECT_EQ(1, observer_incognito.auth_needed_count_); 1003 EXPECT_EQ(1, observer_incognito.auth_needed_count_);
1004 EXPECT_EQ(0, observer_incognito.auth_supplied_count_); 1004 EXPECT_EQ(0, observer_incognito.auth_supplied_count_);
1005 EXPECT_EQ(0, observer_incognito.auth_cancelled_count_); 1005 EXPECT_EQ(0, observer_incognito.auth_cancelled_count_);
1006 EXPECT_TRUE(test_server()->Stop()); 1006 EXPECT_TRUE(test_server()->Stop());
1007 } 1007 }
1008 1008
1009 } // namespace 1009 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/ui/intents/web_intents_model_unittest.cc ('k') | chrome/browser/ui/select_file_dialog_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698