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

Side by Side Diff: chrome/browser/download/download_dir_policy_handler_unittest.cc

Issue 2273783002: Move policy generated files to components/policy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: missed headers Created 4 years, 4 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "chrome/browser/download/download_dir_policy_handler.h" 5 #include "chrome/browser/download/download_dir_policy_handler.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
11 #include "base/memory/ptr_util.h" 11 #include "base/memory/ptr_util.h"
12 #include "base/values.h" 12 #include "base/values.h"
13 #include "build/build_config.h" 13 #include "build/build_config.h"
14 #include "chrome/browser/download/download_prefs.h" 14 #include "chrome/browser/download/download_prefs.h"
15 #include "chrome/common/pref_names.h" 15 #include "chrome/common/pref_names.h"
16 #include "components/drive/drive_pref_names.h" 16 #include "components/drive/drive_pref_names.h"
17 #include "components/policy/core/browser/configuration_policy_handler_parameters .h" 17 #include "components/policy/core/browser/configuration_policy_handler_parameters .h"
18 #include "components/policy/core/browser/configuration_policy_pref_store.h" 18 #include "components/policy/core/browser/configuration_policy_pref_store.h"
19 #include "components/policy/core/browser/configuration_policy_pref_store_test.h" 19 #include "components/policy/core/browser/configuration_policy_pref_store_test.h"
20 #include "components/policy/core/common/policy_details.h" 20 #include "components/policy/core/common/policy_details.h"
21 #include "components/policy/core/common/policy_map.h" 21 #include "components/policy/core/common/policy_map.h"
22 #include "components/policy/core/common/policy_types.h" 22 #include "components/policy/core/common/policy_types.h"
23 #include "policy/policy_constants.h" 23 #include "components/policy/policy_constants.h"
24 24
25 #if defined(OS_CHROMEOS) 25 #if defined(OS_CHROMEOS)
26 #include "chrome/browser/chromeos/drive/file_system_util.h" 26 #include "chrome/browser/chromeos/drive/file_system_util.h"
27 #endif 27 #endif
28 28
29 namespace { 29 namespace {
30 30
31 const char* kUserIDHash = "deadbeef"; 31 const char* kUserIDHash = "deadbeef";
32 32
33 #if defined(OS_CHROMEOS) 33 #if defined(OS_CHROMEOS)
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 EXPECT_FALSE(recommended_store_->GetValue(prefs::kPromptForDownload, NULL)); 151 EXPECT_FALSE(recommended_store_->GetValue(prefs::kPromptForDownload, NULL));
152 EXPECT_FALSE(recommended_store_->GetValue(drive::prefs::kDisableDrive, NULL)); 152 EXPECT_FALSE(recommended_store_->GetValue(drive::prefs::kDisableDrive, NULL));
153 153
154 EXPECT_TRUE( 154 EXPECT_TRUE(
155 recommended_store_->GetValue(prefs::kDownloadDefaultDirectory, &value)); 155 recommended_store_->GetValue(prefs::kDownloadDefaultDirectory, &value));
156 EXPECT_TRUE(value); 156 EXPECT_TRUE(value);
157 EXPECT_TRUE(value->GetAsString(&download_directory)); 157 EXPECT_TRUE(value->GetAsString(&download_directory));
158 EXPECT_EQ(kUserIDHash, download_directory); 158 EXPECT_EQ(kUserIDHash, download_directory);
159 } 159 }
160 #endif 160 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698