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

Side by Side Diff: chrome/browser/task_manager/task_manager_browsertest.cc

Issue 6106008: Re-disable TaskManagerBrowserTest.ReloadExtension for now. ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 11 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 | no next file » | 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/browser/task_manager/task_manager.h" 5 #include "chrome/browser/task_manager/task_manager.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "base/file_path.h" 8 #include "base/file_path.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/background_contents_service.h" 10 #include "chrome/browser/background_contents_service.h"
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 InfoBarDelegate* delegate = current_tab->GetInfoBarDelegateAt(0); 326 InfoBarDelegate* delegate = current_tab->GetInfoBarDelegateAt(0);
327 CrashedExtensionInfoBarDelegate* crashed_delegate = 327 CrashedExtensionInfoBarDelegate* crashed_delegate =
328 delegate->AsCrashedExtensionInfoBarDelegate(); 328 delegate->AsCrashedExtensionInfoBarDelegate();
329 ASSERT_TRUE(crashed_delegate); 329 ASSERT_TRUE(crashed_delegate);
330 crashed_delegate->Accept(); 330 crashed_delegate->Accept();
331 WaitForResourceChange(3); 331 WaitForResourceChange(3);
332 } 332 }
333 333
334 // Regression test for http://crbug.com/18693. 334 // Regression test for http://crbug.com/18693.
335 // 335 //
336 // This test has been crashy in the past, and is re-enabled temporarily to 336 // This test is crashy. See http://crbug.com/42315.
337 // gather more diagnostic information. See http://crbug.com/42315. 337 IN_PROC_BROWSER_TEST_F(TaskManagerBrowserTest, DISABLED_ReloadExtension) {
338 IN_PROC_BROWSER_TEST_F(TaskManagerBrowserTest, ReloadExtension) {
339 // Show the task manager. This populates the model, and helps with debugging 338 // Show the task manager. This populates the model, and helps with debugging
340 // (you see the task manager). 339 // (you see the task manager).
341 browser()->window()->ShowTaskManager(); 340 browser()->window()->ShowTaskManager();
342 341
343 LOG(INFO) << "loading extension"; 342 LOG(INFO) << "loading extension";
344 ASSERT_TRUE(LoadExtension( 343 ASSERT_TRUE(LoadExtension(
345 test_data_dir_.AppendASCII("common").AppendASCII("background_page"))); 344 test_data_dir_.AppendASCII("common").AppendASCII("background_page")));
346 345
347 // Wait until we see the loaded extension in the task manager (the three 346 // Wait until we see the loaded extension in the task manager (the three
348 // resources are: the browser process, New Tab Page, and the extension). 347 // resources are: the browser process, New Tab Page, and the extension).
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 WaitForResourceChange(3); 393 WaitForResourceChange(3);
395 394
396 // Check that we get some value for the cache columns. 395 // Check that we get some value for the cache columns.
397 DCHECK_NE(model()->GetResourceWebCoreImageCacheSize(2), 396 DCHECK_NE(model()->GetResourceWebCoreImageCacheSize(2),
398 l10n_util::GetStringUTF16(IDS_TASK_MANAGER_NA_CELL_TEXT)); 397 l10n_util::GetStringUTF16(IDS_TASK_MANAGER_NA_CELL_TEXT));
399 DCHECK_NE(model()->GetResourceWebCoreScriptsCacheSize(2), 398 DCHECK_NE(model()->GetResourceWebCoreScriptsCacheSize(2),
400 l10n_util::GetStringUTF16(IDS_TASK_MANAGER_NA_CELL_TEXT)); 399 l10n_util::GetStringUTF16(IDS_TASK_MANAGER_NA_CELL_TEXT));
401 DCHECK_NE(model()->GetResourceWebCoreCSSCacheSize(2), 400 DCHECK_NE(model()->GetResourceWebCoreCSSCacheSize(2),
402 l10n_util::GetStringUTF16(IDS_TASK_MANAGER_NA_CELL_TEXT)); 401 l10n_util::GetStringUTF16(IDS_TASK_MANAGER_NA_CELL_TEXT));
403 } 402 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698