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

Unified Diff: delta_performer.h

Issue 3591019: AU: Delta Performer: properly detect idempotent operations (Closed) Base URL: ssh://git@chromiumos-git/update_engine.git
Patch Set: Created 10 years, 2 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 | « no previous file | delta_performer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: delta_performer.h
diff --git a/delta_performer.h b/delta_performer.h
index 5425ea51c1942e5bc05125fb06ed790e4d17fc0e..7967a7beff50aabc58be0d376141756adeaa0c1f 100644
--- a/delta_performer.h
+++ b/delta_performer.h
@@ -10,6 +10,7 @@
#include <vector>
#include <google/protobuf/repeated_field.h>
+#include <gtest/gtest_prod.h> // for FRIEND_TEST
#include "update_engine/file_writer.h"
#include "update_engine/omaha_hash_calculator.h"
@@ -87,6 +88,12 @@ class DeltaPerformer : public FileWriter {
static bool ResetUpdateProgress(PrefsInterface* prefs);
private:
+ friend class DeltaPerformerTest;
+ FRIEND_TEST(DeltaPerformerTest, IsIdempotentOperationTest);
+
+ static bool IsIdempotentOperation(
+ const DeltaArchiveManifest_InstallOperation& op);
+
// Returns true if enough of the delta file has been passed via Write()
// to be able to perform a given install operation.
bool CanPerformInstallOperation(
« no previous file with comments | « no previous file | delta_performer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698