summaryrefslogtreecommitdiffstats
path: root/chrome/browser/policy/cloud/cloud_policy_browsertest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/policy/cloud/cloud_policy_browsertest.cc')
-rw-r--r--chrome/browser/policy/cloud/cloud_policy_browsertest.cc9
1 files changed, 3 insertions, 6 deletions
diff --git a/chrome/browser/policy/cloud/cloud_policy_browsertest.cc b/chrome/browser/policy/cloud/cloud_policy_browsertest.cc
index d129f0a..9fc7f7b 100644
--- a/chrome/browser/policy/cloud/cloud_policy_browsertest.cc
+++ b/chrome/browser/policy/cloud/cloud_policy_browsertest.cc
@@ -273,8 +273,7 @@ IN_PROC_BROWSER_TEST_F(CloudPolicyTest, FetchPolicyWithRotatedKey) {
// Read the initial key.
std::string initial_key;
- ASSERT_TRUE(
- file_util::ReadFileToString(user_policy_key_file_, &initial_key));
+ ASSERT_TRUE(base::ReadFileToString(user_policy_key_file_, &initial_key));
PolicyMap empty;
EXPECT_TRUE(empty.Equals(policy_service->GetPolicies(
@@ -295,8 +294,7 @@ IN_PROC_BROWSER_TEST_F(CloudPolicyTest, FetchPolicyWithRotatedKey) {
// Verify that the key was rotated.
std::string rotated_key;
- ASSERT_TRUE(
- file_util::ReadFileToString(user_policy_key_file_, &rotated_key));
+ ASSERT_TRUE(base::ReadFileToString(user_policy_key_file_, &rotated_key));
EXPECT_NE(rotated_key, initial_key);
// Another refresh using the same key won't rotate it again.
@@ -308,8 +306,7 @@ IN_PROC_BROWSER_TEST_F(CloudPolicyTest, FetchPolicyWithRotatedKey) {
EXPECT_TRUE(expected.Equals(policy_service->GetPolicies(
PolicyNamespace(POLICY_DOMAIN_CHROME, std::string()))));
std::string current_key;
- ASSERT_TRUE(
- file_util::ReadFileToString(user_policy_key_file_, &current_key));
+ ASSERT_TRUE(base::ReadFileToString(user_policy_key_file_, &current_key));
EXPECT_EQ(rotated_key, current_key);
}
#endif