| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_path.h" | 5 #include "base/file_path.h" |
| 6 #include "base/file_util.h" | 6 #include "base/file_util.h" |
| 7 #include "base/memory/linked_ptr.h" | 7 #include "base/memory/linked_ptr.h" |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/memory/scoped_temp_dir.h" | |
| 10 #include "base/path_service.h" | 9 #include "base/path_service.h" |
| 10 #include "base/scoped_temp_dir.h" |
| 11 #include "base/values.h" | 11 #include "base/values.h" |
| 12 #include "chrome/common/chrome_paths.h" | 12 #include "chrome/common/chrome_paths.h" |
| 13 #include "chrome/common/extensions/extension.h" | 13 #include "chrome/common/extensions/extension.h" |
| 14 #include "chrome/common/extensions/extension_constants.h" | 14 #include "chrome/common/extensions/extension_constants.h" |
| 15 #include "chrome/common/extensions/extension_l10n_util.h" | 15 #include "chrome/common/extensions/extension_l10n_util.h" |
| 16 #include "chrome/common/extensions/extension_message_bundle.h" | 16 #include "chrome/common/extensions/extension_message_bundle.h" |
| 17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
| 18 #include "ui/base/l10n/l10n_util.h" | 18 #include "ui/base/l10n/l10n_util.h" |
| 19 | 19 |
| 20 namespace errors = extension_manifest_errors; | 20 namespace errors = extension_manifest_errors; |
| (...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 452 DictionaryValue manifest; | 452 DictionaryValue manifest; |
| 453 manifest.SetString(keys::kDefaultLocale, "en_US"); | 453 manifest.SetString(keys::kDefaultLocale, "en_US"); |
| 454 manifest.SetString(keys::kCurrentLocale, "sr"); | 454 manifest.SetString(keys::kCurrentLocale, "sr"); |
| 455 | 455 |
| 456 ExtensionInfo info(&manifest, "", FilePath(), Extension::LOAD); | 456 ExtensionInfo info(&manifest, "", FilePath(), Extension::LOAD); |
| 457 | 457 |
| 458 EXPECT_TRUE(extension_l10n_util::ShouldRelocalizeManifest(info)); | 458 EXPECT_TRUE(extension_l10n_util::ShouldRelocalizeManifest(info)); |
| 459 } | 459 } |
| 460 | 460 |
| 461 } // namespace | 461 } // namespace |
| OLD | NEW |