OLD | NEW |
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/login/owner_key_utils.h" | 5 #include "chrome/browser/chromeos/settings/owner_key_utils.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
11 #include "base/file_util.h" | 11 #include "base/file_util.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/scoped_temp_dir.h" | 13 #include "base/scoped_temp_dir.h" |
14 #include "crypto/nss_util.h" | 14 #include "crypto/nss_util.h" |
15 #include "crypto/nss_util_internal.h" | 15 #include "crypto/nss_util_internal.h" |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 ASSERT_FALSE(utils_->ImportPublicKey(tmpfile, &from_disk)); | 75 ASSERT_FALSE(utils_->ImportPublicKey(tmpfile, &from_disk)); |
76 | 76 |
77 // Next try empty file. This should fail and the array should be empty. | 77 // Next try empty file. This should fail and the array should be empty. |
78 from_disk.resize(10); | 78 from_disk.resize(10); |
79 ASSERT_TRUE(file_util::CreateTemporaryFileInDir(tmpdir.path(), &tmpfile)); | 79 ASSERT_TRUE(file_util::CreateTemporaryFileInDir(tmpdir.path(), &tmpfile)); |
80 ASSERT_FALSE(utils_->ImportPublicKey(tmpfile, &from_disk)); | 80 ASSERT_FALSE(utils_->ImportPublicKey(tmpfile, &from_disk)); |
81 ASSERT_FALSE(from_disk.size()); | 81 ASSERT_FALSE(from_disk.size()); |
82 } | 82 } |
83 | 83 |
84 } // namespace chromeos | 84 } // namespace chromeos |
OLD | NEW |