| 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 "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/file_util.h" | 8 #include "base/files/file_util.h" |
| 9 #include "base/files/scoped_temp_dir.h" | 9 #include "base/files/scoped_temp_dir.h" |
| 10 #include "base/json/json_string_value_serializer.h" | 10 #include "base/json/json_string_value_serializer.h" |
| 11 #include "base/path_service.h" | 11 #include "base/path_service.h" |
| 12 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
| 13 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
| 14 #include "chrome/common/chrome_paths.h" | 14 #include "chrome/common/chrome_paths.h" |
| 15 #include "extensions/common/constants.h" | 15 #include "extensions/common/constants.h" |
| 16 #include "extensions/common/extension.h" | 16 #include "extensions/common/extension.h" |
| 17 #include "extensions/common/manifest.h" | 17 #include "extensions/common/manifest.h" |
| 18 #include "extensions/common/manifest_constants.h" | 18 #include "extensions/common/manifest_constants.h" |
| (...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 553 base::FilePath actual_path = | 553 base::FilePath actual_path = |
| 554 extensions::file_util::ExtensionResourceURLToFilePath(url, root_path); | 554 extensions::file_util::ExtensionResourceURLToFilePath(url, root_path); |
| 555 EXPECT_EQ(expected_path.value(), actual_path.value()) << | 555 EXPECT_EQ(expected_path.value(), actual_path.value()) << |
| 556 " For the path " << url; | 556 " For the path " << url; |
| 557 } | 557 } |
| 558 // Remove temp files. | 558 // Remove temp files. |
| 559 ASSERT_TRUE(base::DeleteFile(root_path, true)); | 559 ASSERT_TRUE(base::DeleteFile(root_path, true)); |
| 560 } | 560 } |
| 561 | 561 |
| 562 } // namespace extensions | 562 } // namespace extensions |
| OLD | NEW |