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

Unified Diff: 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, 8 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 side-by-side diff with in-line comments
Download patch
Index: chromeos/app_mode/kiosk_oem_manifest_parser_unittest.cc
diff --git a/chrome/browser/chromeos/app_mode/kiosk_oem_manifest_parser_unittest.cc b/chromeos/app_mode/kiosk_oem_manifest_parser_unittest.cc
similarity index 70%
rename from chrome/browser/chromeos/app_mode/kiosk_oem_manifest_parser_unittest.cc
rename to chromeos/app_mode/kiosk_oem_manifest_parser_unittest.cc
index 2b6c8339ad56474219412f1ec99dd08790a657f0..246a79788d1698718255afca0eaa90118b9e01b4 100644
--- a/chrome/browser/chromeos/app_mode/kiosk_oem_manifest_parser_unittest.cc
+++ b/chromeos/app_mode/kiosk_oem_manifest_parser_unittest.cc
@@ -2,10 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/chromeos/app_mode/kiosk_oem_manifest_parser.h"
+#include "chromeos/app_mode/kiosk_oem_manifest_parser.h"
#include "base/path_service.h"
-#include "chrome/common/chrome_paths.h"
+#include "chromeos/chromeos_test_utils.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace chromeos {
@@ -14,9 +14,10 @@ typedef testing::Test KioskOemManifestParserTest;
TEST_F(KioskOemManifestParserTest, LoadTest) {
base::FilePath test_data_dir;
- PathService::Get(chrome::DIR_TEST_DATA, &test_data_dir);
- base::FilePath kiosk_oem_file = test_data_dir.Append(FILE_PATH_LITERAL(
- "chromeos/app_mode/kiosk_manifest/kiosk_manifest.json"));
+ ASSERT_TRUE(chromeos::test_utils::GetTestDataPath(
+ "app_mode", "kiosk_manifest", &test_data_dir));
+ base::FilePath kiosk_oem_file =
+ test_data_dir.AppendASCII("kiosk_manifest.json");
KioskOemManifestParser::Manifest manifest;
EXPECT_TRUE(KioskOemManifestParser::Load(kiosk_oem_file, &manifest));
EXPECT_TRUE(manifest.enterprise_managed);

Powered by Google App Engine
This is Rietveld 408576698