| 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 "build/build_config.h" |
| 5 #include "chrome/common/extensions/manifest_tests/chrome_manifest_test.h" | 6 #include "chrome/common/extensions/manifest_tests/chrome_manifest_test.h" |
| 6 #include "extensions/common/extension.h" | 7 #include "extensions/common/extension.h" |
| 7 #include "extensions/common/manifest_constants.h" | 8 #include "extensions/common/manifest_constants.h" |
| 8 #include "extensions/common/manifest_handlers/kiosk_mode_info.h" | 9 #include "extensions/common/manifest_handlers/kiosk_mode_info.h" |
| 9 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| 10 | 11 |
| 11 namespace extensions { | 12 namespace extensions { |
| 12 | 13 |
| 13 class ExtensionManifestKioskModeTest : public ChromeManifestTest { | 14 class ExtensionManifestKioskModeTest : public ChromeManifestTest { |
| 14 }; | 15 }; |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 EXPECT_FALSE(KioskModeInfo::IsKioskOnly(extension.get())); | 99 EXPECT_FALSE(KioskModeInfo::IsKioskOnly(extension.get())); |
| 99 } | 100 } |
| 100 #else | 101 #else |
| 101 TEST_F(ExtensionManifestKioskModeTest, KioskOnlyFromNonChromeos) { | 102 TEST_F(ExtensionManifestKioskModeTest, KioskOnlyFromNonChromeos) { |
| 102 LoadAndExpectWarning("kiosk_only_platform_app.json", | 103 LoadAndExpectWarning("kiosk_only_platform_app.json", |
| 103 "'kiosk_only' is not allowed for specified platform."); | 104 "'kiosk_only' is not allowed for specified platform."); |
| 104 } | 105 } |
| 105 #endif // defined(OS_CHROMEOS) | 106 #endif // defined(OS_CHROMEOS) |
| 106 | 107 |
| 107 } // namespace extensions | 108 } // namespace extensions |
| OLD | NEW |