Revert 203708 "Disable ico_image_decoder_unittest until the bad ..."
[chromium-blink-merge.git] / chromeos / app_mode / kiosk_oem_manifest_parser_unittest.cc
blob246a79788d1698718255afca0eaa90118b9e01b4
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 "base/path_service.h"
8 #include "chromeos/chromeos_test_utils.h"
9 #include "testing/gtest/include/gtest/gtest.h"
11 namespace chromeos {
13 typedef testing::Test KioskOemManifestParserTest;
15 TEST_F(KioskOemManifestParserTest, LoadTest) {
16 base::FilePath test_data_dir;
17 ASSERT_TRUE(chromeos::test_utils::GetTestDataPath(
18 "app_mode", "kiosk_manifest", &test_data_dir));
19 base::FilePath kiosk_oem_file =
20 test_data_dir.AppendASCII("kiosk_manifest.json");
21 KioskOemManifestParser::Manifest manifest;
22 EXPECT_TRUE(KioskOemManifestParser::Load(kiosk_oem_file, &manifest));
23 EXPECT_TRUE(manifest.enterprise_managed);
24 EXPECT_FALSE(manifest.can_exit_enrollment);
25 EXPECT_TRUE(manifest.keyboard_driven_oobe);
26 EXPECT_EQ(manifest.device_requisition, std::string("test"));
29 } // namespace chromeos