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 #include <sys/types.h> | 5 #include <sys/types.h> |
6 #include <sys/stat.h> | 6 #include <sys/stat.h> |
7 #include <fcntl.h> | 7 #include <fcntl.h> |
8 #include <unistd.h> | 8 #include <unistd.h> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
11 #include <utility> | 11 #include <utility> |
12 #include <vector> | 12 #include <vector> |
13 #include <gtest/gtest.h> | 13 #include <gtest/gtest.h> |
14 #include "chromeos/obsolete_logging.h" | 14 #include "base/logging.h" |
15 #include "update_engine/cycle_breaker.h" | 15 #include "update_engine/cycle_breaker.h" |
16 #include "update_engine/delta_diff_generator.h" | 16 #include "update_engine/delta_diff_generator.h" |
17 #include "update_engine/delta_performer.h" | 17 #include "update_engine/delta_performer.h" |
18 #include "update_engine/graph_types.h" | 18 #include "update_engine/graph_types.h" |
19 #include "update_engine/graph_utils.h" | 19 #include "update_engine/graph_utils.h" |
20 #include "update_engine/subprocess.h" | 20 #include "update_engine/subprocess.h" |
21 #include "update_engine/test_utils.h" | 21 #include "update_engine/test_utils.h" |
22 #include "update_engine/utils.h" | 22 #include "update_engine/utils.h" |
23 | 23 |
24 using std::make_pair; | 24 using std::make_pair; |
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 EXPECT_EQ(0, manifest.install_operations(0).data_offset()); | 342 EXPECT_EQ(0, manifest.install_operations(0).data_offset()); |
343 EXPECT_EQ(3, manifest.install_operations(0).data_length()); | 343 EXPECT_EQ(3, manifest.install_operations(0).data_length()); |
344 EXPECT_EQ(3, manifest.install_operations(1).data_offset()); | 344 EXPECT_EQ(3, manifest.install_operations(1).data_offset()); |
345 EXPECT_EQ(1, manifest.install_operations(1).data_length()); | 345 EXPECT_EQ(1, manifest.install_operations(1).data_length()); |
346 | 346 |
347 unlink(orig_blobs.c_str()); | 347 unlink(orig_blobs.c_str()); |
348 unlink(new_blobs.c_str()); | 348 unlink(new_blobs.c_str()); |
349 } | 349 } |
350 | 350 |
351 } // namespace chromeos_update_engine | 351 } // namespace chromeos_update_engine |
OLD | NEW |