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

Side by Side Diff: chrome/browser/unload_uitest.cc

Issue 7149013: Remove most of the remaining test dependencies (other than chrome/test). (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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
« no previous file with comments | « chrome/browser/ui/cocoa/find_pasteboard_unittest.mm ('k') | chrome/chrome_browser.gypi » ('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 "base/file_util.h" 5 #include "base/file_util.h"
6 #include "base/test/test_timeouts.h" 6 #include "base/test/test_timeouts.h"
7 #include "chrome/browser/net/url_request_mock_http_job.h"
8 #include "chrome/browser/ui/view_ids.h" 7 #include "chrome/browser/ui/view_ids.h"
9 #include "chrome/common/chrome_switches.h" 8 #include "chrome/common/chrome_switches.h"
10 #include "chrome/test/automation/browser_proxy.h" 9 #include "chrome/test/automation/browser_proxy.h"
11 #include "chrome/test/automation/tab_proxy.h" 10 #include "chrome/test/automation/tab_proxy.h"
12 #include "chrome/test/automation/window_proxy.h" 11 #include "chrome/test/automation/window_proxy.h"
13 #include "chrome/test/ui/ui_test.h" 12 #include "chrome/test/ui/ui_test.h"
13 #include "content/browser/net/url_request_mock_http_job.h"
14 #include "net/url_request/url_request_test_util.h" 14 #include "net/url_request/url_request_test_util.h"
15 #include "ui/base/events.h" 15 #include "ui/base/events.h"
16 #include "ui/base/message_box_flags.h" 16 #include "ui/base/message_box_flags.h"
17 17
18 const std::string NOLISTENERS_HTML = 18 const std::string NOLISTENERS_HTML =
19 "<html><head><title>nolisteners</title></head><body></body></html>"; 19 "<html><head><title>nolisteners</title></head><body></body></html>";
20 20
21 const std::string UNLOAD_HTML = 21 const std::string UNLOAD_HTML =
22 "<html><head><title>unload</title></head><body>" 22 "<html><head><title>unload</title></head><body>"
23 "<script>window.onunload=function(e){}</script></body></html>"; 23 "<script>window.onunload=function(e){}</script></body></html>";
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 ASSERT_TRUE(browser->WaitForTabCountToBecome(1)); 456 ASSERT_TRUE(browser->WaitForTabCountToBecome(1));
457 scoped_refptr<TabProxy> main_tab(browser->GetActiveTab()); 457 scoped_refptr<TabProxy> main_tab(browser->GetActiveTab());
458 ASSERT_TRUE(main_tab.get()); 458 ASSERT_TRUE(main_tab.get());
459 std::wstring main_title; 459 std::wstring main_title;
460 EXPECT_TRUE(main_tab->GetTabTitle(&main_title)); 460 EXPECT_TRUE(main_tab->GetTabTitle(&main_title));
461 EXPECT_EQ(std::wstring(L"only_one_unload"), main_title); 461 EXPECT_EQ(std::wstring(L"only_one_unload"), main_title);
462 } 462 }
463 463
464 // TODO(ojan): Add tests for unload/beforeunload that have multiple tabs 464 // TODO(ojan): Add tests for unload/beforeunload that have multiple tabs
465 // and multiple windows. 465 // and multiple windows.
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/find_pasteboard_unittest.mm ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698