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/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" |
tfarina
2014/04/17 16:12:22
We should remove this. We are using it for chrome:
| |
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" |
19 #include "grit/generated_resources.h" | 19 #include "grit/extensions_strings.h" |
20 #include "testing/gmock/include/gmock/gmock.h" | 20 #include "testing/gmock/include/gmock/gmock.h" |
21 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
22 #include "ui/base/l10n/l10n_util.h" | 22 #include "ui/base/l10n/l10n_util.h" |
23 #include "url/gurl.h" | 23 #include "url/gurl.h" |
24 | 24 |
25 namespace extensions { | 25 namespace extensions { |
26 | 26 |
27 namespace { | 27 namespace { |
28 | 28 |
29 scoped_refptr<Extension> LoadExtensionManifest( | 29 scoped_refptr<Extension> LoadExtensionManifest( |
(...skipping 523 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 |