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

Side by Side Diff: chrome/browser/chromeos/settings/owner_key_util_unittest.cc

Issue 486843004: Change base/file_utils.h includes to base/files/file_utils.h in chrome/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix bad merge Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/chromeos/settings/owner_key_util.h" 5 #include "chrome/browser/chromeos/settings/owner_key_util.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/file_util.h"
12 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/files/file_util.h"
13 #include "base/files/scoped_temp_dir.h" 13 #include "base/files/scoped_temp_dir.h"
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "base/stl_util.h" 15 #include "base/stl_util.h"
16 #include "crypto/rsa_private_key.h" 16 #include "crypto/rsa_private_key.h"
17 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
18 18
19 namespace chromeos { 19 namespace chromeos {
20 20
21 // 2048-bit RSA public key for testing. 21 // 2048-bit RSA public key for testing.
22 const uint8 kTestKeyData[] = { 22 const uint8 kTestKeyData[] = {
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 91
92 // Next try empty file. This should fail and the array should be empty. 92 // Next try empty file. This should fail and the array should be empty.
93 from_disk.resize(10); 93 from_disk.resize(10);
94 ASSERT_EQ(0, base::WriteFile(key_file_, "", 0)); 94 ASSERT_EQ(0, base::WriteFile(key_file_, "", 0));
95 EXPECT_TRUE(util_->IsPublicKeyPresent()); 95 EXPECT_TRUE(util_->IsPublicKeyPresent());
96 EXPECT_FALSE(util_->ImportPublicKey(&from_disk)); 96 EXPECT_FALSE(util_->ImportPublicKey(&from_disk));
97 EXPECT_FALSE(from_disk.size()); 97 EXPECT_FALSE(from_disk.size());
98 } 98 }
99 99
100 } // namespace chromeos 100 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/settings/owner_key_util.cc ('k') | chrome/browser/chromeos/system/automatic_reboot_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698