| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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" | |
| 6 #include "base/files/file_path.h" | 5 #include "base/files/file_path.h" |
| 6 #include "base/files/file_util.h" |
| 7 #include "base/files/scoped_temp_dir.h" | 7 #include "base/files/scoped_temp_dir.h" |
| 8 #include "base/memory/linked_ptr.h" | 8 #include "base/memory/linked_ptr.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
| 11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
| 12 #include "base/values.h" | 12 #include "base/values.h" |
| 13 #include "chrome/common/chrome_paths.h" | 13 #include "chrome/common/chrome_paths.h" |
| 14 #include "extensions/common/constants.h" | 14 #include "extensions/common/constants.h" |
| 15 #include "extensions/common/error_utils.h" | 15 #include "extensions/common/error_utils.h" |
| 16 #include "extensions/common/extension_l10n_util.h" | 16 #include "extensions/common/extension_l10n_util.h" |
| (...skipping 636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 653 std::vector<std::string> fallback_locales; | 653 std::vector<std::string> fallback_locales; |
| 654 extension_l10n_util::GetAllFallbackLocales("en_US", "all", &fallback_locales); | 654 extension_l10n_util::GetAllFallbackLocales("en_US", "all", &fallback_locales); |
| 655 ASSERT_EQ(3U, fallback_locales.size()); | 655 ASSERT_EQ(3U, fallback_locales.size()); |
| 656 | 656 |
| 657 CHECK_EQ("en_US", fallback_locales[0]); | 657 CHECK_EQ("en_US", fallback_locales[0]); |
| 658 CHECK_EQ("en", fallback_locales[1]); | 658 CHECK_EQ("en", fallback_locales[1]); |
| 659 CHECK_EQ("all", fallback_locales[2]); | 659 CHECK_EQ("all", fallback_locales[2]); |
| 660 } | 660 } |
| 661 | 661 |
| 662 } // namespace | 662 } // namespace |
| OLD | NEW |