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/file_util.h" | 5 #include "base/file_util.h" |
6 #include "base/format_macros.h" | 6 #include "base/format_macros.h" |
7 #include "base/path_service.h" | 7 #include "base/path_service.h" |
8 #include "base/stringprintf.h" | |
9 #include "base/strings/string_number_conversions.h" | 8 #include "base/strings/string_number_conversions.h" |
| 9 #include "base/strings/stringprintf.h" |
10 #include "chrome/common/chrome_paths.h" | 10 #include "chrome/common/chrome_paths.h" |
11 #include "chrome/common/extensions/command.h" | 11 #include "chrome/common/extensions/command.h" |
12 #include "chrome/common/extensions/extension.h" | 12 #include "chrome/common/extensions/extension.h" |
13 #include "chrome/common/extensions/extension_file_util.h" | 13 #include "chrome/common/extensions/extension_file_util.h" |
14 #include "chrome/common/extensions/extension_test_util.h" | 14 #include "chrome/common/extensions/extension_test_util.h" |
15 #include "chrome/common/extensions/manifest.h" | 15 #include "chrome/common/extensions/manifest.h" |
16 #include "chrome/common/extensions/manifest_handlers/content_scripts_handler.h" | 16 #include "chrome/common/extensions/manifest_handlers/content_scripts_handler.h" |
17 #include "chrome/common/extensions/permissions/permissions_data.h" | 17 #include "chrome/common/extensions/permissions/permissions_data.h" |
18 #include "chrome/common/url_constants.h" | 18 #include "chrome/common/url_constants.h" |
19 #include "extensions/common/extension_resource.h" | 19 #include "extensions/common/extension_resource.h" |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 | 278 |
279 extension = LoadManifest("app", "manifest.json", Extension::FROM_BOOKMARK); | 279 extension = LoadManifest("app", "manifest.json", Extension::FROM_BOOKMARK); |
280 EXPECT_TRUE(extension->from_bookmark()); | 280 EXPECT_TRUE(extension->from_bookmark()); |
281 | 281 |
282 extension = LoadManifest("app", "manifest.json", Extension::NO_FLAGS); | 282 extension = LoadManifest("app", "manifest.json", Extension::NO_FLAGS); |
283 EXPECT_FALSE(extension->from_bookmark()); | 283 EXPECT_FALSE(extension->from_bookmark()); |
284 EXPECT_FALSE(extension->from_webstore()); | 284 EXPECT_FALSE(extension->from_webstore()); |
285 } | 285 } |
286 | 286 |
287 } // namespace extensions | 287 } // namespace extensions |
OLD | NEW |