| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "extensions/common/file_util.h" | 5 #include "extensions/common/file_util.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include <utility> | 9 #include <utility> |
| 8 | 10 |
| 9 #include "base/basictypes.h" | |
| 10 #include "base/files/file_util.h" | 11 #include "base/files/file_util.h" |
| 11 #include "base/files/scoped_temp_dir.h" | 12 #include "base/files/scoped_temp_dir.h" |
| 12 #include "base/json/json_string_value_serializer.h" | 13 #include "base/json/json_string_value_serializer.h" |
| 14 #include "base/macros.h" |
| 13 #include "base/path_service.h" | 15 #include "base/path_service.h" |
| 14 #include "base/strings/stringprintf.h" | 16 #include "base/strings/stringprintf.h" |
| 15 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" |
| 18 #include "build/build_config.h" |
| 16 #include "extensions/common/constants.h" | 19 #include "extensions/common/constants.h" |
| 17 #include "extensions/common/extension.h" | 20 #include "extensions/common/extension.h" |
| 18 #include "extensions/common/extension_paths.h" | 21 #include "extensions/common/extension_paths.h" |
| 19 #include "extensions/common/manifest.h" | 22 #include "extensions/common/manifest.h" |
| 20 #include "extensions/common/manifest_constants.h" | 23 #include "extensions/common/manifest_constants.h" |
| 21 #include "grit/extensions_strings.h" | 24 #include "grit/extensions_strings.h" |
| 22 #include "testing/gmock/include/gmock/gmock.h" | 25 #include "testing/gmock/include/gmock/gmock.h" |
| 23 #include "testing/gtest/include/gtest/gtest.h" | 26 #include "testing/gtest/include/gtest/gtest.h" |
| 24 #include "ui/base/l10n/l10n_util.h" | 27 #include "ui/base/l10n/l10n_util.h" |
| 25 #include "url/gurl.h" | 28 #include "url/gurl.h" |
| (...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 554 base::FilePath actual_path = | 557 base::FilePath actual_path = |
| 555 extensions::file_util::ExtensionResourceURLToFilePath(url, root_path); | 558 extensions::file_util::ExtensionResourceURLToFilePath(url, root_path); |
| 556 EXPECT_EQ(expected_path.value(), actual_path.value()) << | 559 EXPECT_EQ(expected_path.value(), actual_path.value()) << |
| 557 " For the path " << url; | 560 " For the path " << url; |
| 558 } | 561 } |
| 559 // Remove temp files. | 562 // Remove temp files. |
| 560 ASSERT_TRUE(base::DeleteFile(root_path, true)); | 563 ASSERT_TRUE(base::DeleteFile(root_path, true)); |
| 561 } | 564 } |
| 562 | 565 |
| 563 } // namespace extensions | 566 } // namespace extensions |
| OLD | NEW |