[Extensions UI] Fix another chrome://extensions commands bug
[chromium-blink-merge.git] / chromeos / app_mode / kiosk_oem_manifest_parser_unittest.cc
blob55966408d78d6339b1469f6b75ed88beca3127c1
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
3 // found in the LICENSE file.
5 #include "chromeos/app_mode/kiosk_oem_manifest_parser.h"
7 #include "chromeos/chromeos_test_utils.h"
8 #include "testing/gtest/include/gtest/gtest.h"
10 namespace chromeos {
12 typedef testing::Test KioskOemManifestParserTest;
14 TEST_F(KioskOemManifestParserTest, LoadTest) {
15 base::FilePath test_data_dir;
16 ASSERT_TRUE(chromeos::test_utils::GetTestDataPath(
17 "app_mode", "kiosk_manifest", &test_data_dir));
18 base::FilePath kiosk_oem_file =
19 test_data_dir.AppendASCII("kiosk_manifest.json");
20 KioskOemManifestParser::Manifest manifest;
21 EXPECT_TRUE(KioskOemManifestParser::Load(kiosk_oem_file, &manifest));
22 EXPECT_TRUE(manifest.enterprise_managed);
23 EXPECT_FALSE(manifest.can_exit_enrollment);
24 EXPECT_TRUE(manifest.keyboard_driven_oobe);
25 EXPECT_EQ(manifest.device_requisition, std::string("test"));
28 } // namespace chromeos