Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(865)

Unified Diff: delta_diff_generator_unittest.cc

Issue 3013030: AU: when cutting a cycle, add proper dependencies. (Closed) Base URL: ssh://git@chromiumos-git/update_engine.git
Patch Set: Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « delta_diff_generator.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: delta_diff_generator_unittest.cc
diff --git a/delta_diff_generator_unittest.cc b/delta_diff_generator_unittest.cc
index 50f1180440f29b97e6a00f9ffc5fa234c70dd899..b137766e01ea30e6111d277a025654aaf93bf3d5 100644
--- a/delta_diff_generator_unittest.cc
+++ b/delta_diff_generator_unittest.cc
@@ -284,11 +284,13 @@ TEST_F(DeltaDiffGeneratorTest, CutEdgesTest) {
EXPECT_EQ(2, graph[0].op.dst_extents(0).num_blocks());
EXPECT_EQ(4, graph[0].op.dst_extents(1).start_block());
EXPECT_EQ(1, graph[0].op.dst_extents(1).num_blocks());
-
- // Ensure it only depends on the next node
- EXPECT_EQ(1, graph[0].out_edges.size());
+
+ // Ensure it only depends on the next node and the new temp node
+ EXPECT_EQ(2, graph[0].out_edges.size());
EXPECT_TRUE(graph[0].out_edges.end() != graph[0].out_edges.find(1));
-
+ EXPECT_TRUE(graph[0].out_edges.end() != graph[0].out_edges.find(graph.size() -
+ 1));
+
// Check second node has unchanged extents
EXPECT_EQ(2, graph[1].op.src_extents_size());
EXPECT_EQ(1, graph[1].op.src_extents(0).start_block());
« no previous file with comments | « delta_diff_generator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698