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

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

Issue 28154: Make IPC::Logging register to watch for message loop destruction. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 10 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 | « no previous file | chrome/common/ipc_logging.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/string_util.h" 6 #include "base/string_util.h"
7 #include "base/sys_info.h" 7 #include "base/sys_info.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "chrome/app/chrome_dll_resource.h" 9 #include "chrome/app/chrome_dll_resource.h"
10 #include "chrome/common/chrome_constants.h" 10 #include "chrome/common/chrome_constants.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 82
83 const std::wstring test_title(L"Title Of Awesomeness"); 83 const std::wstring test_title(L"Title Of Awesomeness");
84 EXPECT_EQ(WindowCaptionFromPageTitle(test_title), GetWindowTitle()); 84 EXPECT_EQ(WindowCaptionFromPageTitle(test_title), GetWindowTitle());
85 EXPECT_EQ(test_title, GetActiveTabTitle()); 85 EXPECT_EQ(test_title, GetActiveTabTitle());
86 } 86 }
87 87
88 // Create 34 tabs and verify that a lot of processes have been created. The 88 // Create 34 tabs and verify that a lot of processes have been created. The
89 // exact number of processes depends on the amount of memory. Previously we 89 // exact number of processes depends on the amount of memory. Previously we
90 // had a hard limit of 31 processes and this test is mainly directed at 90 // had a hard limit of 31 processes and this test is mainly directed at
91 // verifying that we don't crash when we pass this limit. 91 // verifying that we don't crash when we pass this limit.
92 // Disabling this test as it is making all the buildbots running ui tests red. 92 TEST_F(BrowserTest, ThirtyFourTabs) {
93 // see http://code.google.com/p/chromium/issues/detail?id=5668
94 TEST_F(BrowserTest, DISABLED_ThirtyFourTabs) {
95 std::wstring test_file = test_data_directory_; 93 std::wstring test_file = test_data_directory_;
96 file_util::AppendToPath(&test_file, L"title2.html"); 94 file_util::AppendToPath(&test_file, L"title2.html");
97 GURL url(net::FilePathToFileURL(test_file)); 95 GURL url(net::FilePathToFileURL(test_file));
98 scoped_ptr<BrowserProxy> window(automation()->GetBrowserWindow(0)); 96 scoped_ptr<BrowserProxy> window(automation()->GetBrowserWindow(0));
99 // There is one initial tab. 97 // There is one initial tab.
100 for (int ix = 0; ix != 33; ++ix) { 98 for (int ix = 0; ix != 33; ++ix) {
101 EXPECT_TRUE(window->AppendTab(url)); 99 EXPECT_TRUE(window->AppendTab(url));
102 } 100 }
103 int tab_count = 0; 101 int tab_count = 0;
104 EXPECT_TRUE(window->GetTabCount(&tab_count)); 102 EXPECT_TRUE(window->GetTabCount(&tab_count));
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 if (title == L"PASSED") { 275 if (title == L"PASSED") {
278 // Success, bail out. 276 // Success, bail out.
279 break; 277 break;
280 } 278 }
281 } 279 }
282 280
283 if (i == 10) 281 if (i == 10)
284 FAIL() << "failed to get error page title"; 282 FAIL() << "failed to get error page title";
285 } 283 }
286 284
OLDNEW
« no previous file with comments | « no previous file | chrome/common/ipc_logging.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698