| OLD | NEW | 
|     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 "chrome/browser/download/download_browsertest.h" |     5 #include "chrome/browser/download/download_browsertest.h" | 
|     6  |     6  | 
|     7 #include <stdint.h> |     7 #include <stdint.h> | 
|     8 #include <sstream> |     8 #include <sstream> | 
|     9 #include <utility> |     9 #include <utility> | 
|    10  |    10  | 
|    11 #include "base/bind.h" |    11 #include "base/bind.h" | 
|    12 #include "base/bind_helpers.h" |    12 #include "base/bind_helpers.h" | 
|    13 #include "base/command_line.h" |    13 #include "base/command_line.h" | 
|    14 #include "base/feature_list.h" |    14 #include "base/feature_list.h" | 
|    15 #include "base/files/file.h" |    15 #include "base/files/file.h" | 
|    16 #include "base/files/file_path.h" |    16 #include "base/files/file_path.h" | 
|    17 #include "base/files/file_util.h" |    17 #include "base/files/file_util.h" | 
|    18 #include "base/files/scoped_temp_dir.h" |    18 #include "base/files/scoped_temp_dir.h" | 
|    19 #include "base/macros.h" |    19 #include "base/macros.h" | 
|    20 #include "base/memory/ref_counted.h" |    20 #include "base/memory/ref_counted.h" | 
|    21 #include "base/path_service.h" |    21 #include "base/path_service.h" | 
|    22 #include "base/stl_util.h" |  | 
|    23 #include "base/strings/string_number_conversions.h" |    22 #include "base/strings/string_number_conversions.h" | 
|    24 #include "base/strings/string_split.h" |    23 #include "base/strings/string_split.h" | 
|    25 #include "base/strings/string_util.h" |    24 #include "base/strings/string_util.h" | 
|    26 #include "base/strings/stringprintf.h" |    25 #include "base/strings/stringprintf.h" | 
|    27 #include "base/strings/utf_string_conversions.h" |    26 #include "base/strings/utf_string_conversions.h" | 
|    28 #include "base/sys_info.h" |    27 #include "base/sys_info.h" | 
|    29 #include "base/test/test_file_util.h" |    28 #include "base/test/test_file_util.h" | 
|    30 #include "build/build_config.h" |    29 #include "build/build_config.h" | 
|    31 #include "chrome/app/chrome_command_ids.h" |    30 #include "chrome/app/chrome_command_ids.h" | 
|    32 #include "chrome/browser/browser_process.h" |    31 #include "chrome/browser/browser_process.h" | 
| (...skipping 3634 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  3667           browser(), 1, |  3666           browser(), 1, | 
|  3668           content::DownloadTestObserver::ON_DANGEROUS_DOWNLOAD_DENY)); |  3667           content::DownloadTestObserver::ON_DANGEROUS_DOWNLOAD_DENY)); | 
|  3669   ui_test_utils::NavigateToURL(browser(), extension_url); |  3668   ui_test_utils::NavigateToURL(browser(), extension_url); | 
|  3670  |  3669  | 
|  3671   observer->WaitForFinished(); |  3670   observer->WaitForFinished(); | 
|  3672  |  3671  | 
|  3673   // Download shelf should close. |  3672   // Download shelf should close. | 
|  3674   EXPECT_FALSE(browser()->window()->IsDownloadShelfVisible()); |  3673   EXPECT_FALSE(browser()->window()->IsDownloadShelfVisible()); | 
|  3675 } |  3674 } | 
|  3676 #endif  // defined(OS_CHROMEOS) |  3675 #endif  // defined(OS_CHROMEOS) | 
| OLD | NEW |