OLD | NEW |
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 <string> | 5 #include <string> |
6 | 6 |
7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
| 10 #include "build/build_config.h" |
10 #include "chrome/browser/download/download_dir_policy_handler.h" | 11 #include "chrome/browser/download/download_dir_policy_handler.h" |
11 #include "chrome/browser/download/download_prefs.h" | 12 #include "chrome/browser/download/download_prefs.h" |
12 #include "chrome/common/pref_names.h" | 13 #include "chrome/common/pref_names.h" |
13 #include "components/drive/drive_pref_names.h" | 14 #include "components/drive/drive_pref_names.h" |
14 #include "components/policy/core/browser/configuration_policy_handler_parameters
.h" | 15 #include "components/policy/core/browser/configuration_policy_handler_parameters
.h" |
15 #include "components/policy/core/browser/configuration_policy_pref_store.h" | 16 #include "components/policy/core/browser/configuration_policy_pref_store.h" |
16 #include "components/policy/core/browser/configuration_policy_pref_store_test.h" | 17 #include "components/policy/core/browser/configuration_policy_pref_store_test.h" |
17 #include "components/policy/core/common/policy_details.h" | 18 #include "components/policy/core/common/policy_details.h" |
18 #include "components/policy/core/common/policy_map.h" | 19 #include "components/policy/core/common/policy_map.h" |
19 #include "components/policy/core/common/policy_types.h" | 20 #include "components/policy/core/common/policy_types.h" |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 EXPECT_FALSE(recommended_store_->GetValue(prefs::kPromptForDownload, NULL)); | 160 EXPECT_FALSE(recommended_store_->GetValue(prefs::kPromptForDownload, NULL)); |
160 EXPECT_FALSE(recommended_store_->GetValue(drive::prefs::kDisableDrive, NULL)); | 161 EXPECT_FALSE(recommended_store_->GetValue(drive::prefs::kDisableDrive, NULL)); |
161 | 162 |
162 EXPECT_TRUE( | 163 EXPECT_TRUE( |
163 recommended_store_->GetValue(prefs::kDownloadDefaultDirectory, &value)); | 164 recommended_store_->GetValue(prefs::kDownloadDefaultDirectory, &value)); |
164 EXPECT_TRUE(value); | 165 EXPECT_TRUE(value); |
165 EXPECT_TRUE(value->GetAsString(&download_directory)); | 166 EXPECT_TRUE(value->GetAsString(&download_directory)); |
166 EXPECT_EQ(kUserIDHash, download_directory); | 167 EXPECT_EQ(kUserIDHash, download_directory); |
167 } | 168 } |
168 #endif | 169 #endif |
OLD | NEW |