OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "base/command_line.h" | 5 #include "base/command_line.h" |
6 #include "base/files/file_path.h" | 6 #include "base/files/file_path.h" |
| 7 #include "base/macros.h" |
7 #include "base/path_service.h" | 8 #include "base/path_service.h" |
8 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
9 #include "chrome/common/chrome_paths.h" | 10 #include "chrome/common/chrome_paths.h" |
10 #include "chrome/common/extensions/manifest_handlers/content_scripts_handler.h" | 11 #include "chrome/common/extensions/manifest_handlers/content_scripts_handler.h" |
11 #include "chrome/common/extensions/manifest_tests/chrome_manifest_test.h" | 12 #include "chrome/common/extensions/manifest_tests/chrome_manifest_test.h" |
12 #include "extensions/common/error_utils.h" | 13 #include "extensions/common/error_utils.h" |
13 #include "extensions/common/extension.h" | 14 #include "extensions/common/extension.h" |
14 #include "extensions/common/file_util.h" | 15 #include "extensions/common/file_util.h" |
15 #include "extensions/common/manifest_constants.h" | 16 #include "extensions/common/manifest_constants.h" |
16 #include "extensions/common/switches.h" | 17 #include "extensions/common/switches.h" |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 scoped_refptr<Extension> extension(file_util::LoadExtension( | 99 scoped_refptr<Extension> extension(file_util::LoadExtension( |
99 install_dir, Manifest::UNPACKED, Extension::NO_FLAGS, &error)); | 100 install_dir, Manifest::UNPACKED, Extension::NO_FLAGS, &error)); |
100 ASSERT_TRUE(extension.get() == NULL); | 101 ASSERT_TRUE(extension.get() == NULL); |
101 ASSERT_STREQ( | 102 ASSERT_STREQ( |
102 "Could not load file 'bad_encoding.js' for content script. " | 103 "Could not load file 'bad_encoding.js' for content script. " |
103 "It isn't UTF-8 encoded.", | 104 "It isn't UTF-8 encoded.", |
104 error.c_str()); | 105 error.c_str()); |
105 } | 106 } |
106 | 107 |
107 } // namespace extensions | 108 } // namespace extensions |
OLD | NEW |