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

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

Issue 2731263004: Disabling DownloadExtensionTest_OnDeterminingFilename_InterruptedResume on CrOS (Closed)
Patch Set: Created 3 years, 9 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
« 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) 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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 3980 matching lines...) Expand 10 before | Expand all | Expand 10 after
3991 GetFilename("42 (1).txt").c_str()))); 3991 GetFilename("42 (1).txt").c_str())));
3992 ASSERT_TRUE(WaitFor(downloads::OnChanged::kEventName, 3992 ASSERT_TRUE(WaitFor(downloads::OnChanged::kEventName,
3993 base::StringPrintf( 3993 base::StringPrintf(
3994 "[{\"id\": %d," 3994 "[{\"id\": %d,"
3995 " \"state\": {" 3995 " \"state\": {"
3996 " \"previous\": \"in_progress\"," 3996 " \"previous\": \"in_progress\","
3997 " \"current\": \"complete\"}}]", 3997 " \"current\": \"complete\"}}]",
3998 result_id))); 3998 result_id)));
3999 } 3999 }
4000 4000
4001 #if defined(OS_WIN) 4001 #if defined(OS_WIN) || defined(OS_CHROMEOS)
4002 // This test is very flaky on Win XP and Aura. http://crbug.com/248438 4002 // This test is very flaky on Win XP and Aura. http://crbug.com/248438
4003 #define MAYBE_DownloadExtensionTest_OnDeterminingFilename_InterruptedResume \ 4003 #define MAYBE_DownloadExtensionTest_OnDeterminingFilename_InterruptedResume \
4004 DISABLED_DownloadExtensionTest_OnDeterminingFilename_InterruptedResume 4004 DISABLED_DownloadExtensionTest_OnDeterminingFilename_InterruptedResume
4005 #else 4005 #else
4006 #define MAYBE_DownloadExtensionTest_OnDeterminingFilename_InterruptedResume \ 4006 #define MAYBE_DownloadExtensionTest_OnDeterminingFilename_InterruptedResume \
4007 DownloadExtensionTest_OnDeterminingFilename_InterruptedResume 4007 DownloadExtensionTest_OnDeterminingFilename_InterruptedResume
4008 #endif 4008 #endif
4009 4009
4010 // Test download interruption while extensions determining filename. Should not 4010 // Test download interruption while extensions determining filename. Should not
4011 // re-dispatch onDeterminingFilename. 4011 // re-dispatch onDeterminingFilename.
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
4302 EXPECT_EQ(downloads::FILENAME_CONFLICT_ACTION_PROMPT, conflict_action); 4302 EXPECT_EQ(downloads::FILENAME_CONFLICT_ACTION_PROMPT, conflict_action);
4303 EXPECT_FALSE(warnings.empty()); 4303 EXPECT_FALSE(warnings.empty());
4304 EXPECT_EQ(Warning::kDownloadFilenameConflict, 4304 EXPECT_EQ(Warning::kDownloadFilenameConflict,
4305 warnings.begin()->warning_type()); 4305 warnings.begin()->warning_type());
4306 EXPECT_EQ("incumbent", warnings.begin()->extension_id()); 4306 EXPECT_EQ("incumbent", warnings.begin()->extension_id());
4307 } 4307 }
4308 4308
4309 } // namespace extensions 4309 } // namespace extensions
4310 4310
4311 #endif // http://crbug.com/306144 4311 #endif // http://crbug.com/306144
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