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 "chrome/common/extensions/manifest_handlers/kiosk_mode_info.h" | |
6 #include "chrome/common/extensions/manifest_tests/extension_manifest_test.h" | 5 #include "chrome/common/extensions/manifest_tests/extension_manifest_test.h" |
7 #include "extensions/common/extension.h" | 6 #include "extensions/common/extension.h" |
8 #include "extensions/common/manifest_constants.h" | 7 #include "extensions/common/manifest_constants.h" |
| 8 #include "extensions/common/manifest_handlers/kiosk_mode_info.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
10 | 10 |
11 namespace extensions { | 11 namespace extensions { |
12 | 12 |
13 class ExtensionManifestKioskModeTest : public ExtensionManifestTest { | 13 class ExtensionManifestKioskModeTest : public ExtensionManifestTest { |
14 }; | 14 }; |
15 | 15 |
16 TEST_F(ExtensionManifestKioskModeTest, InvalidKioskEnabled) { | 16 TEST_F(ExtensionManifestKioskModeTest, InvalidKioskEnabled) { |
17 LoadAndExpectError("kiosk_enabled_invalid.json", | 17 LoadAndExpectError("kiosk_enabled_invalid.json", |
18 manifest_errors::kInvalidKioskEnabled); | 18 manifest_errors::kInvalidKioskEnabled); |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 EXPECT_FALSE(KioskModeInfo::IsKioskOnly(extension.get())); | 90 EXPECT_FALSE(KioskModeInfo::IsKioskOnly(extension.get())); |
91 } | 91 } |
92 | 92 |
93 TEST_F(ExtensionManifestKioskModeTest, KioskOnlyExtension) { | 93 TEST_F(ExtensionManifestKioskModeTest, KioskOnlyExtension) { |
94 scoped_refptr<Extension> extension( | 94 scoped_refptr<Extension> extension( |
95 LoadAndExpectSuccess("kiosk_only_extension.json")); | 95 LoadAndExpectSuccess("kiosk_only_extension.json")); |
96 EXPECT_FALSE(KioskModeInfo::IsKioskOnly(extension.get())); | 96 EXPECT_FALSE(KioskModeInfo::IsKioskOnly(extension.get())); |
97 } | 97 } |
98 | 98 |
99 } // namespace extensions | 99 } // namespace extensions |
OLD | NEW |