OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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" | 5 #include "base/file_util.h" |
6 #include "base/files/scoped_temp_dir.h" | 6 #include "base/files/scoped_temp_dir.h" |
7 #include "base/path_service.h" | 7 #include "base/path_service.h" |
8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
10 #include "base/values.h" | 10 #include "base/values.h" |
11 #include "chrome/common/chrome_paths.h" | 11 #include "chrome/common/chrome_paths.h" |
12 #include "chrome/common/extensions/api/i18n/default_locale_handler.h" | 12 #include "chrome/common/extensions/api/i18n/default_locale_handler.h" |
13 #include "chrome/common/extensions/api/themes/theme_handler.h" | |
14 #include "chrome/common/extensions/extension.h" | 13 #include "chrome/common/extensions/extension.h" |
15 #include "chrome/common/extensions/extension_constants.h" | 14 #include "chrome/common/extensions/extension_constants.h" |
16 #include "chrome/common/extensions/extension_manifest_constants.h" | 15 #include "chrome/common/extensions/extension_manifest_constants.h" |
17 #include "chrome/common/extensions/manifest_handler.h" | 16 #include "chrome/common/extensions/manifest_handler.h" |
| 17 #include "chrome/common/extensions/manifest_handlers/theme_handler.h" |
18 #include "chrome/common/extensions/unpacker.h" | 18 #include "chrome/common/extensions/unpacker.h" |
19 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
20 #include "third_party/skia/include/core/SkBitmap.h" | 20 #include "third_party/skia/include/core/SkBitmap.h" |
21 | 21 |
22 namespace errors = extension_manifest_errors; | 22 namespace errors = extension_manifest_errors; |
23 namespace filenames = extension_filenames; | 23 namespace filenames = extension_filenames; |
24 namespace keys = extension_manifest_keys; | 24 namespace keys = extension_manifest_keys; |
25 | 25 |
26 namespace extensions { | 26 namespace extensions { |
27 | 27 |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 SetupUnpacker("bad_image.crx"); | 181 SetupUnpacker("bad_image.crx"); |
182 EXPECT_FALSE(unpacker_->Run()); | 182 EXPECT_FALSE(unpacker_->Run()); |
183 EXPECT_TRUE(StartsWith(unpacker_->error_message(), | 183 EXPECT_TRUE(StartsWith(unpacker_->error_message(), |
184 ASCIIToUTF16(kExpected), | 184 ASCIIToUTF16(kExpected), |
185 false)) << "Expected prefix: \"" << kExpected | 185 false)) << "Expected prefix: \"" << kExpected |
186 << "\", actual error: \"" << unpacker_->error_message() | 186 << "\", actual error: \"" << unpacker_->error_message() |
187 << "\""; | 187 << "\""; |
188 } | 188 } |
189 | 189 |
190 } // namespace extensions | 190 } // namespace extensions |
OLD | NEW |