OLD | NEW |
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 // Unit tests for the CEEE utilities. | 5 // Unit tests for the CEEE utilities. |
6 | 6 |
7 #include "ceee/ie/common/ceee_util.h" | 7 #include "ceee/ie/common/ceee_util.h" |
8 | 8 |
9 #include <ostream> // NOLINT | 9 #include <ostream> // NOLINT |
10 #include <winerror.h> | 10 #include <winerror.h> |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 } | 46 } |
47 | 47 |
48 TEST(CeeeUtilTest, IsIeCeeeRegisteredNo) { | 48 TEST(CeeeUtilTest, IsIeCeeeRegisteredNo) { |
49 MockRegOpenKeyEx mock_reg; | 49 MockRegOpenKeyEx mock_reg; |
50 EXPECT_CALL(mock_reg, RegOpenKeyEx(_, _, _, _, _)) | 50 EXPECT_CALL(mock_reg, RegOpenKeyEx(_, _, _, _, _)) |
51 .WillOnce(Return(ERROR_FILE_NOT_FOUND)); | 51 .WillOnce(Return(ERROR_FILE_NOT_FOUND)); |
52 ASSERT_FALSE(ceee_util::IsIeCeeeRegistered()); | 52 ASSERT_FALSE(ceee_util::IsIeCeeeRegistered()); |
53 } | 53 } |
54 | 54 |
55 } // namespace | 55 } // namespace |
OLD | NEW |