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

Side by Side Diff: chromeos/app_mode/kiosk_oem_manifest_parser_unittest.cc

Issue 689563002: Cleanup: Remove unneeded path_service.h includes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 1 month 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 "chromeos/app_mode/kiosk_oem_manifest_parser.h" 5 #include "chromeos/app_mode/kiosk_oem_manifest_parser.h"
6 6
7 #include "base/path_service.h"
8 #include "chromeos/chromeos_test_utils.h" 7 #include "chromeos/chromeos_test_utils.h"
9 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
10 9
11 namespace chromeos { 10 namespace chromeos {
12 11
13 typedef testing::Test KioskOemManifestParserTest; 12 typedef testing::Test KioskOemManifestParserTest;
14 13
15 TEST_F(KioskOemManifestParserTest, LoadTest) { 14 TEST_F(KioskOemManifestParserTest, LoadTest) {
16 base::FilePath test_data_dir; 15 base::FilePath test_data_dir;
17 ASSERT_TRUE(chromeos::test_utils::GetTestDataPath( 16 ASSERT_TRUE(chromeos::test_utils::GetTestDataPath(
18 "app_mode", "kiosk_manifest", &test_data_dir)); 17 "app_mode", "kiosk_manifest", &test_data_dir));
19 base::FilePath kiosk_oem_file = 18 base::FilePath kiosk_oem_file =
20 test_data_dir.AppendASCII("kiosk_manifest.json"); 19 test_data_dir.AppendASCII("kiosk_manifest.json");
21 KioskOemManifestParser::Manifest manifest; 20 KioskOemManifestParser::Manifest manifest;
22 EXPECT_TRUE(KioskOemManifestParser::Load(kiosk_oem_file, &manifest)); 21 EXPECT_TRUE(KioskOemManifestParser::Load(kiosk_oem_file, &manifest));
23 EXPECT_TRUE(manifest.enterprise_managed); 22 EXPECT_TRUE(manifest.enterprise_managed);
24 EXPECT_FALSE(manifest.can_exit_enrollment); 23 EXPECT_FALSE(manifest.can_exit_enrollment);
25 EXPECT_TRUE(manifest.keyboard_driven_oobe); 24 EXPECT_TRUE(manifest.keyboard_driven_oobe);
26 EXPECT_EQ(manifest.device_requisition, std::string("test")); 25 EXPECT_EQ(manifest.device_requisition, std::string("test"));
27 } 26 }
28 27
29 } // namespace chromeos 28 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromecast/browser/url_request_context_factory.cc ('k') | chromeos/network/onc/onc_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698