Chromium Code Reviews| Index: chrome/browser/ui/browser_close_browsertest.cc |
| diff --git a/chrome/browser/ui/browser_close_browsertest.cc b/chrome/browser/ui/browser_close_browsertest.cc |
| index 4f2b14503671a1d1a37b75478829cea3db9a3379..242f58f945f76522cc32702ac63b9893f5b8dada 100644 |
| --- a/chrome/browser/ui/browser_close_browsertest.cc |
| +++ b/chrome/browser/ui/browser_close_browsertest.cc |
| @@ -275,13 +275,19 @@ class BrowserCloseTest : public InProcessBrowserTest { |
| << ": " << check_case.DebugString(); |
| if (first_profile_ != entry_browser->profile()) |
| return false; |
| + int nondangerous_download_count = |
| + DownloadService::NonDangerousDownloadCountAllProfiles(); |
| + EXPECT_EQ(0, nondangerous_download_count) |
| + << "Case " << i |
| + << ": " << check_case.DebugString(); |
|
asanka
2013/10/11 16:02:35
Minor nit: Adding a SCOPED_TRACE at the top of the
felt
2013/10/11 17:26:44
I assume you mean for the whole file, not just for
asanka
2013/10/11 19:09:42
Yup. However, my suggestion seems to have been mis
felt
2013/10/11 23:41:10
Done.
|
| + if (0 != nondangerous_download_count) |
| + return false; |
| int total_download_count = DownloadService::DownloadCountAllProfiles(); |
| EXPECT_EQ(0, total_download_count) |
| << "Case " << i |
| << ": " << check_case.DebugString(); |
| if (0 != total_download_count) |
| return false; |
| - |
| Profile* first_profile_incognito = first_profile_->GetOffTheRecordProfile(); |
| Profile* second_profile_incognito = |
| second_profile_->GetOffTheRecordProfile(); |