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

Side by Side Diff: chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc

Issue 819133004: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 years, 12 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
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 // Disable everything on windows only. http://crbug.com/306144 5 // Disable everything on windows only. http://crbug.com/306144
6 #ifndef OS_WIN 6 #ifndef OS_WIN
7 7
8 #include <algorithm> 8 #include <algorithm>
9 9
10 #include "base/files/file_util.h" 10 #include "base/files/file_util.h"
(...skipping 3840 matching lines...) Expand 10 before | Expand all | Expand 10 after
3851 #else 3851 #else
3852 #define MAYBE_DownloadExtensionTest_OnDeterminingFilename_InterruptedResume \ 3852 #define MAYBE_DownloadExtensionTest_OnDeterminingFilename_InterruptedResume \
3853 DownloadExtensionTest_OnDeterminingFilename_InterruptedResume 3853 DownloadExtensionTest_OnDeterminingFilename_InterruptedResume
3854 #endif 3854 #endif
3855 3855
3856 // Test download interruption while extensions determining filename. Should not 3856 // Test download interruption while extensions determining filename. Should not
3857 // re-dispatch onDeterminingFilename. 3857 // re-dispatch onDeterminingFilename.
3858 IN_PROC_BROWSER_TEST_F( 3858 IN_PROC_BROWSER_TEST_F(
3859 DownloadExtensionTest, 3859 DownloadExtensionTest,
3860 MAYBE_DownloadExtensionTest_OnDeterminingFilename_InterruptedResume) { 3860 MAYBE_DownloadExtensionTest_OnDeterminingFilename_InterruptedResume) {
3861 CommandLine::ForCurrentProcess()->AppendSwitch( 3861 base::CommandLine::ForCurrentProcess()->AppendSwitch(
3862 switches::kEnableDownloadResumption); 3862 switches::kEnableDownloadResumption);
3863 LoadExtension("downloads_split"); 3863 LoadExtension("downloads_split");
3864 ASSERT_TRUE(StartEmbeddedTestServer()); 3864 ASSERT_TRUE(StartEmbeddedTestServer());
3865 ASSERT_TRUE(test_server()->Start()); 3865 ASSERT_TRUE(test_server()->Start());
3866 GoOnTheRecord(); 3866 GoOnTheRecord();
3867 content::RenderProcessHost* host = AddFilenameDeterminer(); 3867 content::RenderProcessHost* host = AddFilenameDeterminer();
3868 3868
3869 // Start a download. 3869 // Start a download.
3870 DownloadItem* item = NULL; 3870 DownloadItem* item = NULL;
3871 { 3871 {
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
4152 EXPECT_EQ(downloads::FILENAME_CONFLICT_ACTION_PROMPT, conflict_action); 4152 EXPECT_EQ(downloads::FILENAME_CONFLICT_ACTION_PROMPT, conflict_action);
4153 EXPECT_FALSE(warnings.empty()); 4153 EXPECT_FALSE(warnings.empty());
4154 EXPECT_EQ(Warning::kDownloadFilenameConflict, 4154 EXPECT_EQ(Warning::kDownloadFilenameConflict,
4155 warnings.begin()->warning_type()); 4155 warnings.begin()->warning_type());
4156 EXPECT_EQ("incumbent", warnings.begin()->extension_id()); 4156 EXPECT_EQ("incumbent", warnings.begin()->extension_id());
4157 } 4157 }
4158 4158
4159 } // namespace extensions 4159 } // namespace extensions
4160 4160
4161 #endif // http://crbug.com/3061144 4161 #endif // http://crbug.com/3061144
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698