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

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

Issue 14643006: [chromeos] Remove dependencies of StatisticsProvider on chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: trybots Created 7 years, 7 months 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 | Annotate | Revision Log
OLDNEW
(Empty)
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.
4
5 #include "chrome/browser/chromeos/app_mode/kiosk_oem_manifest_parser.h"
6
7 #include "base/path_service.h"
8 #include "chrome/common/chrome_paths.h"
9 #include "testing/gtest/include/gtest/gtest.h"
10
11 namespace chromeos {
12
13 typedef testing::Test KioskOemManifestParserTest;
14
15 TEST_F(KioskOemManifestParserTest, LoadTest) {
16 base::FilePath test_data_dir;
17 PathService::Get(chrome::DIR_TEST_DATA, &test_data_dir);
18 base::FilePath kiosk_oem_file = test_data_dir.Append(FILE_PATH_LITERAL(
19 "chromeos/app_mode/kiosk_manifest/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"));
26 }
27
28 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698