| 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 "base/file_util.h" | 5 #include "base/file_util.h" |
| 6 #include "base/files/file_path.h" | 6 #include "base/files/file_path.h" |
| 7 #include "base/string_split.h" | 7 #include "base/strings/string_split.h" |
| 8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
| 9 #include "chrome/browser/extensions/api/file_system/file_system_api.h" | 9 #include "chrome/browser/extensions/api/file_system/file_system_api.h" |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| 11 #include "ui/shell_dialogs/select_file_dialog.h" | 11 #include "ui/shell_dialogs/select_file_dialog.h" |
| 12 | 12 |
| 13 using extensions::FileSystemChooseEntryFunction; | 13 using extensions::FileSystemChooseEntryFunction; |
| 14 using extensions::api::file_system::AcceptOption; | 14 using extensions::api::file_system::AcceptOption; |
| 15 | 15 |
| 16 namespace { | 16 namespace { |
| 17 | 17 |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 // TODO(thorogood): Fix this test on Windows. | 178 // TODO(thorogood): Fix this test on Windows. |
| 179 // Filter out absolute paths with no basename. | 179 // Filter out absolute paths with no basename. |
| 180 opt_name = std::string("/"); | 180 opt_name = std::string("/"); |
| 181 FileSystemChooseEntryFunction::BuildSuggestion(&opt_name, &suggested_name, | 181 FileSystemChooseEntryFunction::BuildSuggestion(&opt_name, &suggested_name, |
| 182 &suggested_extension); | 182 &suggested_extension); |
| 183 EXPECT_FALSE(suggested_name.IsAbsolute()); | 183 EXPECT_FALSE(suggested_name.IsAbsolute()); |
| 184 EXPECT_TRUE(suggested_name.MaybeAsASCII().empty()); | 184 EXPECT_TRUE(suggested_name.MaybeAsASCII().empty()); |
| 185 EXPECT_TRUE(suggested_extension.empty()); | 185 EXPECT_TRUE(suggested_extension.empty()); |
| 186 #endif | 186 #endif |
| 187 } | 187 } |
| OLD | NEW |