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

Side by Side Diff: chrome/browser/ui/browser_close_browsertest.cc

Issue 11359217: Move scoped_temp_dir from base to base/files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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 "base/command_line.h" 5 #include "base/command_line.h"
6 #include "base/logging.h" 6 #include "base/logging.h"
7 #include "base/path_service.h" 7 #include "base/path_service.h"
8 #include "base/stringprintf.h" 8 #include "base/stringprintf.h"
9 #include "chrome/browser/browser_process.h" 9 #include "chrome/browser/browser_process.h"
10 #include "chrome/browser/download/download_service.h" 10 #include "chrome/browser/download/download_service.h"
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 371
372 return true; 372 return true;
373 } 373 }
374 374
375 static const DownloadsCloseCheckCase download_close_check_cases[]; 375 static const DownloadsCloseCheckCase download_close_check_cases[];
376 376
377 // DownloadCloseCheck variables. 377 // DownloadCloseCheck variables.
378 Profile* first_profile_; 378 Profile* first_profile_;
379 Profile* second_profile_; 379 Profile* second_profile_;
380 380
381 ScopedTempDir first_profile_downloads_dir_; 381 base::ScopedTempDir first_profile_downloads_dir_;
382 ScopedTempDir second_profile_data_dir_; 382 base::ScopedTempDir second_profile_data_dir_;
383 ScopedTempDir second_profile_downloads_dir_; 383 base::ScopedTempDir second_profile_downloads_dir_;
384 }; 384 };
385 385
386 const BrowserCloseTest::DownloadsCloseCheckCase 386 const BrowserCloseTest::DownloadsCloseCheckCase
387 BrowserCloseTest::download_close_check_cases[] = { 387 BrowserCloseTest::download_close_check_cases[] = {
388 // Top level nesting is {profile_a, profile_b} 388 // Top level nesting is {profile_a, profile_b}
389 // Second level nesting is {regular, incognito 389 // Second level nesting is {regular, incognito
390 // Third level (inner) nesting is {windows, downloads} 390 // Third level (inner) nesting is {windows, downloads}
391 391
392 // Last window (incognito) triggers browser close warning. 392 // Last window (incognito) triggers browser close warning.
393 {{{0, 0}, {1, 1}}, {{0, 0}, {0, 0}}, 393 {{{0, 0}, {1, 1}}, {{0, 0}, {0, 0}},
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 } 555 }
556 } 556 }
557 557
558 IN_PROC_BROWSER_TEST_F(BrowserCloseTest, MAYBE_DownloadsCloseCheck_5) { 558 IN_PROC_BROWSER_TEST_F(BrowserCloseTest, MAYBE_DownloadsCloseCheck_5) {
559 ASSERT_TRUE(SetupForDownloadCloseCheck()); 559 ASSERT_TRUE(SetupForDownloadCloseCheck());
560 for (size_t i = 5 * arraysize(download_close_check_cases) / 6; 560 for (size_t i = 5 * arraysize(download_close_check_cases) / 6;
561 i < 6 * arraysize(download_close_check_cases) / 6; ++i) { 561 i < 6 * arraysize(download_close_check_cases) / 6; ++i) {
562 ExecuteDownloadCloseCheckCase(i); 562 ExecuteDownloadCloseCheckCase(i);
563 } 563 }
564 } 564 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_browsertest.cc ('k') | chrome/browser/ui/intents/web_intents_model_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698