Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(580)

Side by Side Diff: chrome/common/extensions/manifest_tests/extension_manifests_kiosk_unittest.cc

Issue 83843002: Move ManifestHandlers to extensions/ (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: s/handler/info Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698