| 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 <windows.h> | 5 #include <windows.h> |
| 6 | 6 |
| 7 #include "base/macros.h" |
| 7 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 8 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
| 9 #include "base/test/test_reg_util_win.h" | 10 #include "base/test/test_reg_util_win.h" |
| 10 #include "base/win/registry.h" | 11 #include "base/win/registry.h" |
| 11 #include "chrome/installer/util/delete_reg_value_work_item.h" | 12 #include "chrome/installer/util/delete_reg_value_work_item.h" |
| 12 #include "chrome/installer/util/work_item.h" | 13 #include "chrome/installer/util/work_item.h" |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 14 | 15 |
| 15 using base::win::RegKey; | 16 using base::win::RegKey; |
| 16 | 17 |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 | 144 |
| 144 EXPECT_EQ(ERROR_FILE_NOT_FOUND, | 145 EXPECT_EQ(ERROR_FILE_NOT_FOUND, |
| 145 key.Open(HKEY_CURRENT_USER, kTestKey, KEY_READ)); | 146 key.Open(HKEY_CURRENT_USER, kTestKey, KEY_READ)); |
| 146 | 147 |
| 147 work_item1->Rollback(); | 148 work_item1->Rollback(); |
| 148 work_item2->Rollback(); | 149 work_item2->Rollback(); |
| 149 | 150 |
| 150 EXPECT_EQ(ERROR_FILE_NOT_FOUND, | 151 EXPECT_EQ(ERROR_FILE_NOT_FOUND, |
| 151 key.Open(HKEY_CURRENT_USER, kTestKey, KEY_READ)); | 152 key.Open(HKEY_CURRENT_USER, kTestKey, KEY_READ)); |
| 152 } | 153 } |
| OLD | NEW |