diff options
author | yang.zhang <y0169.zhang@samsung.com> | 2016-05-18 11:25:47 +0800 |
---|---|---|
committer | yang.zhang <y0169.zhang@samsung.com> | 2016-05-18 11:27:16 +0800 |
commit | 41c06420b9ff028fd452cec19ac1412be665673f (patch) | |
tree | ece29e014e212b56654888fa3f95f50625164919 /testing/modify.h | |
parent | a96d62621beefe4aa20b696744be6325bc536fb6 (diff) | |
download | xdelta3-release-20160930.tar.gz xdelta3-release-20160930.tar.bz2 xdelta3-release-20160930.zip |
Imported upstream 3.0.8HEADsubmit/trunk/20191101.102136submit/trunk/20191030.112603submit/trunk/20191017.233826submit/trunk/20191017.111201submit/trunk/20190927.012842accepted/tools/devbase/tools/legacy/20240424.050617accepted/tools/devbase/tools/legacy/20240423.040635accepted/tools/devbase/tools/legacy/20240422.110744accepted/tizen/devbase/tools/20190927.044910spin-release-latestrelease-20161231release-20160930release-20160615release-20160531masterdevel_psk_20160727develaccepted/tools_devbase_tools_legacyaccepted/tizen_devbase_tools
Change-Id: I8423a2e4bed8a15b862b6b1ab6f6371c92e78b3f
Diffstat (limited to 'testing/modify.h')
-rw-r--r-- | testing/modify.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/testing/modify.h b/testing/modify.h index 93f7bde..5c2e316 100644 --- a/testing/modify.h +++ b/testing/modify.h @@ -12,12 +12,12 @@ public: enum Kind { MODIFY = 1, // Mutate a certain range w/ random or supplied data ADD = 2, // Insert random or supplied data - DELRANGE = 3, // Delete a specified range of data + DELETE = 3, // Delete a specified range of data COPY = 4, // Copy from one region, inserting elsewhere MOVE = 5, // Copy then delete copied-from range - COPYOVER = 6 // Copy then delete copied-to range + COPYOVER = 6 // Copy then delete copied-to range - // ADD, DELRANGE, and COPY change the file size + // ADD, DELETE, and COPY change the file size // MODIFY, MOVE, COPYOVER preserve the file size }; @@ -97,7 +97,7 @@ public: case Change::MODIFY: ModifyChange(ch, table, source_table, rand); break; - case Change::DELRANGE: + case Change::DELETE: DeleteChange(ch, table, source_table, rand); break; case Change::COPY: @@ -269,7 +269,7 @@ public: SegmentMap tmp; CHECK_NE(ch.addr1, ch.addr2); CopyChange(ch, &tmp, source_table, rand); - Change d(Change::DELRANGE, ch.size, + Change d(Change::DELETE, ch.size, ch.addr1 < ch.addr2 ? ch.addr1 : ch.addr1 + ch.size); DeleteChange(d, table, &tmp, rand); } @@ -282,7 +282,7 @@ public: SegmentMap tmp; CHECK_NE(ch.addr1, ch.addr2); CopyChange(ch, &tmp, source_table, rand); - Change d(Change::DELRANGE, ch.size, ch.addr2 + ch.size); + Change d(Change::DELETE, ch.size, ch.addr2 + ch.size); DeleteChange(d, table, &tmp, rand); } |