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

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

Issue 1542413002: Switch to standard integer types in chrome/browser/, part 1 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 <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
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
OLDNEW
« no previous file with comments | « chrome/browser/download/download_dir_policy_handler.cc ('k') | chrome/browser/download/download_extensions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698