OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #ifndef CHROMEOS_PLATFORM_UPDATE_ENGINE_UTILS_H__ | 5 #ifndef CHROMEOS_PLATFORM_UPDATE_ENGINE_UTILS_H__ |
6 #define CHROMEOS_PLATFORM_UPDATE_ENGINE_UTILS_H__ | 6 #define CHROMEOS_PLATFORM_UPDATE_ENGINE_UTILS_H__ |
7 | 7 |
| 8 #include <algorithm> |
8 #include <set> | 9 #include <set> |
9 #include <string> | 10 #include <string> |
10 #include <vector> | 11 #include <vector> |
11 #include "update_engine/action.h" | 12 #include "update_engine/action.h" |
12 #include "update_engine/action_processor.h" | 13 #include "update_engine/action_processor.h" |
13 | 14 |
14 namespace chromeos_update_engine { | 15 namespace chromeos_update_engine { |
15 | 16 |
16 namespace utils { | 17 namespace utils { |
17 | 18 |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 bool _success = (_x); \ | 189 bool _success = (_x); \ |
189 if (!_success) { \ | 190 if (!_success) { \ |
190 LOG(ERROR) << #_x " failed."; \ | 191 LOG(ERROR) << #_x " failed."; \ |
191 return; \ | 192 return; \ |
192 } \ | 193 } \ |
193 } while (0) | 194 } while (0) |
194 | 195 |
195 | 196 |
196 | 197 |
197 #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_UTILS_H__ | 198 #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_UTILS_H__ |
OLD | NEW |