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

Side by Side Diff: chrome/browser/chromeos/login/owner_key_utils_unittest.cc

Issue 3402010: Google codestyle prescribes sorting #include filenames within a section.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 3 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/login/owner_key_utils.h" 5 #include "chrome/browser/chromeos/login/owner_key_utils.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/crypto/rsa_private_key.h" 10 #include "base/crypto/rsa_private_key.h"
11 #include "base/file_path.h" 11 #include "base/file_path.h"
12 #include "base/file_util.h" 12 #include "base/file_util.h"
13 #include "base/nss_util.h"
13 #include "base/nss_util_internal.h" 14 #include "base/nss_util_internal.h"
14 #include "base/nss_util.h"
15 #include "base/ref_counted.h" 15 #include "base/ref_counted.h"
16 #include "base/scoped_temp_dir.h" 16 #include "base/scoped_temp_dir.h"
17 #include "testing/gmock/include/gmock/gmock.h"
17 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
18 #include "testing/gmock/include/gmock/gmock.h"
19 19
20 namespace chromeos { 20 namespace chromeos {
21 21
22 class OwnerKeyUtilsTest : public ::testing::Test { 22 class OwnerKeyUtilsTest : public ::testing::Test {
23 public: 23 public:
24 OwnerKeyUtilsTest() : utils_(OwnerKeyUtils::Create()) {} 24 OwnerKeyUtilsTest() : utils_(OwnerKeyUtils::Create()) {}
25 virtual ~OwnerKeyUtilsTest() {} 25 virtual ~OwnerKeyUtilsTest() {}
26 26
27 virtual void SetUp() { 27 virtual void SetUp() {
28 base::OpenPersistentNSSDB(); 28 base::OpenPersistentNSSDB();
(...skipping 22 matching lines...) Expand all
51 std::vector<uint8>::iterator pubkey_it; 51 std::vector<uint8>::iterator pubkey_it;
52 std::vector<uint8>::iterator disk_it; 52 std::vector<uint8>::iterator disk_it;
53 for (pubkey_it = public_key.begin(), disk_it = from_disk.begin(); 53 for (pubkey_it = public_key.begin(), disk_it = from_disk.begin();
54 pubkey_it < public_key.end(); 54 pubkey_it < public_key.end();
55 pubkey_it++, disk_it++) { 55 pubkey_it++, disk_it++) {
56 EXPECT_EQ(*pubkey_it, *disk_it); 56 EXPECT_EQ(*pubkey_it, *disk_it);
57 } 57 }
58 } 58 }
59 59
60 } // namespace chromeos 60 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/owner_key_utils.cc ('k') | chrome/browser/chromeos/login/owner_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698