OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/macros.h" |
5 #include "extensions/common/manifest_constants.h" | 6 #include "extensions/common/manifest_constants.h" |
6 #include "extensions/common/manifest_handlers/file_handler_info.h" | 7 #include "extensions/common/manifest_handlers/file_handler_info.h" |
7 #include "extensions/common/manifest_test.h" | 8 #include "extensions/common/manifest_test.h" |
8 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
9 | 10 |
10 namespace extensions { | 11 namespace extensions { |
11 | 12 |
12 namespace errors = manifest_errors; | 13 namespace errors = manifest_errors; |
13 | 14 |
14 typedef ManifestTest FileHandlersManifestTest; | 15 typedef ManifestTest FileHandlersManifestTest; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 scoped_refptr<const Extension> extension = | 64 scoped_refptr<const Extension> extension = |
64 LoadAndExpectSuccess("file_handlers_invalid_not_app.json"); | 65 LoadAndExpectSuccess("file_handlers_invalid_not_app.json"); |
65 | 66 |
66 ASSERT_TRUE(extension.get()); | 67 ASSERT_TRUE(extension.get()); |
67 const FileHandlersInfo* handlers = | 68 const FileHandlersInfo* handlers = |
68 FileHandlers::GetFileHandlers(extension.get()); | 69 FileHandlers::GetFileHandlers(extension.get()); |
69 ASSERT_TRUE(handlers == NULL); | 70 ASSERT_TRUE(handlers == NULL); |
70 } | 71 } |
71 | 72 |
72 } // namespace extensions | 73 } // namespace extensions |
OLD | NEW |