/system/update_engine/payload_generator/ |
payload_generation_config.cc | 34 TEST_AND_RETURN_FALSE(!path.empty()); 35 TEST_AND_RETURN_FALSE(utils::FileExists(path.c_str())); 36 TEST_AND_RETURN_FALSE(size > 0); 38 TEST_AND_RETURN_FALSE(static_cast<off_t>(size) <= 63 TEST_AND_RETURN_FALSE(size % kBlockSize == 0); 73 TEST_AND_RETURN_FALSE(ImageInfoIsEmpty()); 123 TEST_AND_RETURN_FALSE(major == kChromeOSMajorPayloadVersion || 125 TEST_AND_RETURN_FALSE(minor == kFullPayloadMinorVersion || 181 TEST_AND_RETURN_FALSE(version.Validate()); 182 TEST_AND_RETURN_FALSE(version.IsDelta() == is_delta) [all...] |
payload_signer.cc | 68 TEST_AND_RETURN_FALSE(out_message.AppendToString(&serialized)); 97 TEST_AND_RETURN_FALSE( 106 TEST_AND_RETURN_FALSE(utils::ReadFile(payload_path, &payload)); 149 TEST_AND_RETURN_FALSE(manifest.AppendToString(&serialized_manifest)); 192 TEST_AND_RETURN_FALSE( 200 TEST_AND_RETURN_FALSE(calc.Update(payload.data(), metadata_size)); 201 TEST_AND_RETURN_FALSE(signatures_offset >= 203 TEST_AND_RETURN_FALSE(calc.Update( 206 TEST_AND_RETURN_FALSE(calc.Finalize()); 248 TEST_AND_RETURN_FALSE(payload_file) [all...] |
delta_diff_generator.cc | 66 TEST_AND_RETURN_FALSE(payload.Init(config)); 71 TEST_AND_RETURN_FALSE( 74 TEST_AND_RETURN_FALSE(data_file_fd >= 0); 81 TEST_AND_RETURN_FALSE(config.source.partitions.size() == 114 TEST_AND_RETURN_FALSE(strategy->GenerateOperations(config, 125 TEST_AND_RETURN_FALSE(payload.AddPartition(old_part, new_part, aops)); 131 TEST_AND_RETURN_FALSE(payload.WritePayload(output_path, temp_file_path,
|
payload_file.cc | 55 TEST_AND_RETURN_FALSE(writer->Write(&value_be, sizeof(value_be))); 62 TEST_AND_RETURN_FALSE(config.version.Validate()); 83 TEST_AND_RETURN_FALSE(part_vec_.size() < part_order.size()); 84 TEST_AND_RETURN_FALSE(new_conf.name == part_order[part_vec_.size()]); 92 TEST_AND_RETURN_FALSE(diff_utils::InitializePartitionInfo(old_conf, 94 TEST_AND_RETURN_FALSE(diff_utils::InitializePartitionInfo(new_conf, 106 TEST_AND_RETURN_FALSE(utils::MakeTempFile( 111 TEST_AND_RETURN_FALSE(ReorderDataBlobs(data_blobs_path, ordered_blobs_path)); 174 TEST_AND_RETURN_FALSE( 184 TEST_AND_RETURN_FALSE(manifest_.AppendToString(&serialized_manifest)) [all...] |
bzip.cc | 30 TEST_AND_RETURN_FALSE(out); 53 TEST_AND_RETURN_FALSE(rc == BZ_OUTBUFF_FULL || rc == BZ_OK);
|
full_update_generator.cc | 98 TEST_AND_RETURN_FALSE(utils::PReadAll(fd_, 103 TEST_AND_RETURN_FALSE(bytes_read == static_cast<ssize_t>(size_)); 106 TEST_AND_RETURN_FALSE(diff_utils::GenerateBestFullOperation( 110 TEST_AND_RETURN_FALSE(aop_->SetOperationBlob(op_blob, blob_file_)); 122 TEST_AND_RETURN_FALSE(new_part.ValidateExists()); 138 TEST_AND_RETURN_FALSE(full_chunk_size > 0); 139 TEST_AND_RETURN_FALSE(full_chunk_size % config.block_size == 0); 149 TEST_AND_RETURN_FALSE(in_fd >= 0);
|
ab_generator.cc | 43 TEST_AND_RETURN_FALSE(old_part.name == new_part.name); 50 TEST_AND_RETURN_FALSE(diff_utils::DeltaReadPartition(aops, 59 TEST_AND_RETURN_FALSE( 71 TEST_AND_RETURN_FALSE(MergeOperations( 75 TEST_AND_RETURN_FALSE(AddSourceHash(aops, old_part.path)); 92 TEST_AND_RETURN_FALSE(SplitSourceCopy(aop, &fragmented_aops)); 94 TEST_AND_RETURN_FALSE(SplitAReplaceOp( 108 TEST_AND_RETURN_FALSE(original_op.type() == InstallOperation::SOURCE_COPY); 163 TEST_AND_RETURN_FALSE(IsAReplaceOperation(original_op.type())); 185 TEST_AND_RETURN_FALSE( [all...] |
delta_diff_utils.cc | 179 TEST_AND_RETURN_FALSE(DeltaMovedAndZeroBlocks( 199 TEST_AND_RETURN_FALSE(new_part.fs_interface); 237 TEST_AND_RETURN_FALSE(DeltaReadFile(aops, 267 TEST_AND_RETURN_FALSE(DeltaReadFile(aops, 292 TEST_AND_RETURN_FALSE(MapPartitionBlocks(old_part, 371 TEST_AND_RETURN_FALSE(DeltaReadFile(aops, 460 TEST_AND_RETURN_FALSE(ReadExtentsToDiff(old_part, 490 TEST_AND_RETURN_FALSE(aop.SetOperationBlob(data, blob_file)); 588 TEST_AND_RETURN_FALSE(utils::ReadExtents(new_part, 593 TEST_AND_RETURN_FALSE(!new_data.empty()) [all...] |
zip_unittest.cc | 75 TEST_AND_RETURN_FALSE(writer->Init(nullptr, {}, 1)); 76 TEST_AND_RETURN_FALSE(writer->Write(in.data(), in.size())); 77 TEST_AND_RETURN_FALSE(writer->End());
|
inplace_generator.cc | 333 TEST_AND_RETURN_FALSE(InplaceGenerator::ConvertCutToFullOp( 433 TEST_AND_RETURN_FALSE(ConvertCutsToFull(graph, 442 TEST_AND_RETURN_FALSE(scratch_ranges.blocks() == scratch_blocks_found); 500 TEST_AND_RETURN_FALSE(AssignBlockForAdjoiningCuts(graph, 516 TEST_AND_RETURN_FALSE(AssignBlockForAdjoiningCuts(graph, 570 TEST_AND_RETURN_FALSE(diff_utils::DeltaReadFile( 580 TEST_AND_RETURN_FALSE(new_aop.size() == 1); 581 TEST_AND_RETURN_FALSE(AddInstallOpToGraph( 616 TEST_AND_RETURN_FALSE(CutEdges(graph, cut_edges, &cuts)); 636 TEST_AND_RETURN_FALSE(AssignTempBlocks(graph [all...] |
annotated_operation.cc | 47 TEST_AND_RETURN_FALSE(data_offset != -1);
|
/system/update_engine/payload_consumer/ |
bzip_extent_writer.cc | 35 TEST_AND_RETURN_FALSE(rc == BZ_OK); 61 TEST_AND_RETURN_FALSE(rc == BZ_OK || rc == BZ_STREAM_END); 66 TEST_AND_RETURN_FALSE( 86 TEST_AND_RETURN_FALSE(input_buffer_.empty()); 87 TEST_AND_RETURN_FALSE(BZ2_bzDecompressEnd(&stream_) == BZ_OK);
|
extent_writer.cc | 38 TEST_AND_RETURN_FALSE(next_extent_index_ < extents_.size()); 46 TEST_AND_RETURN_FALSE(bytes_to_write > 0); 54 TEST_AND_RETURN_FALSE(
|
delta_performer.cc | [all...] |
payload_verifier.cc | 90 TEST_AND_RETURN_FALSE(!public_key_path.empty()); 94 TEST_AND_RETURN_FALSE(signatures.ParseFromArray(signature_blob.data(), 133 TEST_AND_RETURN_FALSE(!public_key_path.empty()); 150 TEST_AND_RETURN_FALSE(rsa != nullptr); 166 TEST_AND_RETURN_FALSE(decrypt_size > 0 && 174 TEST_AND_RETURN_FALSE(hash->size() == 32); 179 TEST_AND_RETURN_FALSE(hash->size() == 256);
|
xz_extent_writer.cc | 61 TEST_AND_RETURN_FALSE(stream_ != nullptr); 96 TEST_AND_RETURN_FALSE( 114 TEST_AND_RETURN_FALSE(input_buffer_.empty());
|
mtd_file_descriptor.cc | 106 TEST_AND_RETURN_FALSE((flags & O_ACCMODE) != O_RDWR); 114 TEST_AND_RETURN_FALSE( 171 TEST_AND_RETURN_FALSE(base::StartsWith(ubi_name.MaybeAsASCII(), "ubi", 184 TEST_AND_RETURN_FALSE((flags & O_ACCMODE) != O_RDWR); 185 TEST_AND_RETURN_FALSE(
|
/system/update_engine/common/ |
hash_calculator.cc | 39 TEST_AND_RETURN_FALSE(valid_); 40 TEST_AND_RETURN_FALSE(hash_.empty()); 43 TEST_AND_RETURN_FALSE(SHA256_Update(&ctx_, data, length) == 1); 78 TEST_AND_RETURN_FALSE(hash_.empty()); 79 TEST_AND_RETURN_FALSE(raw_hash_.empty()); 81 TEST_AND_RETURN_FALSE(SHA256_Final(raw_hash_.data(), &ctx_) == 1); 93 TEST_AND_RETURN_FALSE(calc.Update(data, length)); 94 TEST_AND_RETURN_FALSE(calc.Finalize()); 138 TEST_AND_RETURN_FALSE(context.size() == sizeof(ctx_));
|
prefs.cc | 37 TEST_AND_RETURN_FALSE(storage_->SetKey(key, value)); 52 TEST_AND_RETURN_FALSE(base::StringToInt64(str_value, value)); 85 TEST_AND_RETURN_FALSE(storage_->DeleteKey(key)); 120 TEST_AND_RETURN_FALSE(GetFileNameForKey(key, &filename)); 130 TEST_AND_RETURN_FALSE(GetFileNameForKey(key, &filename)); 134 TEST_AND_RETURN_FALSE(base::CreateDirectory(filename.DirName())); 136 TEST_AND_RETURN_FALSE(base::WriteFile(filename, value.data(), value.size()) == 143 TEST_AND_RETURN_FALSE(GetFileNameForKey(key, &filename)); 149 TEST_AND_RETURN_FALSE(GetFileNameForKey(key, &filename)); 150 TEST_AND_RETURN_FALSE(base::DeleteFile(filename, false)) [all...] |
utils.cc | 157 TEST_AND_RETURN_FALSE(base::GetTempDir(&temp_dir)); 161 TEST_AND_RETURN_FALSE(base::CreateDirectory(temp_dir)); 597 TEST_AND_RETURN_FALSE(Subprocess::SynchronousExec(cmd, &exit_code, nullptr)); 598 TEST_AND_RETURN_FALSE(exit_code == 0); 605 TEST_AND_RETURN_FALSE(Subprocess::SynchronousExec(cmd, &exit_code, nullptr)); 606 TEST_AND_RETURN_FALSE(exit_code == 0); 620 TEST_AND_RETURN_FALSE( 644 TEST_AND_RETURN_FALSE(GetTempName(base_dirname_template, &dirname_template)); 741 TEST_AND_RETURN_FALSE(fd >= 0); 795 TEST_AND_RETURN_FALSE(magic == EXT2_SUPER_MAGIC) [all...] |
/external/bsdiff/ |
test_utils.cc | 98 TEST_AND_RETURN_FALSE(contents.size() >= kHeaderSize); 104 TEST_AND_RETURN_FALSE(file_size >= kHeaderSize + ctrl_len + diff_len); 108 TEST_AND_RETURN_FALSE(ctrl_len >= 0); 109 TEST_AND_RETURN_FALSE(diff_len >= 0); 122 TEST_AND_RETURN_FALSE(ctrl_len >= 0); 123 TEST_AND_RETURN_FALSE(diff_len >= 0); 124 TEST_AND_RETURN_FALSE(new_file_len >= 0);
|
test_utils.h | 11 #define TEST_AND_RETURN_FALSE(_x) \
|
/system/update_engine/ |
chrome_browser_proxy_resolver.cc | 104 TEST_AND_RETURN_FALSE(it != callbacks_.end()); 105 TEST_AND_RETURN_FALSE(it->first == source_url); 112 TEST_AND_RETURN_FALSE(it != timers_.end()); 113 TEST_AND_RETURN_FALSE(it->first == source_url);
|
certificate_checker.cc | 41 TEST_AND_RETURN_FALSE(out_digest); 43 TEST_AND_RETURN_FALSE(certificate); 137 TEST_AND_RETURN_FALSE(prefs_ != nullptr);
|
connection_manager.cc | 168 TEST_AND_RETURN_FALSE(GetDefaultServicePath(&default_service_path)); 174 TEST_AND_RETURN_FALSE( 185 TEST_AND_RETURN_FALSE(manager_proxy->GetProperties(&properties, &error)); 206 TEST_AND_RETURN_FALSE(service->GetProperties(&properties, &error));
|