Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3a4652c0 authored by Ryan Prichard's avatar Ryan Prichard Committed by Automerger Merge Worker
Browse files

Merge "mtp: add <assert.h> and <functional> includes" into main am: 0c700f93...

Merge "mtp: add <assert.h> and <functional> includes" into main am: 0c700f93 am: dfabd84a am: 4aba0046 am: 2e1c56a5 am: 8ca79808

Original change: https://android-review.googlesource.com/c/platform/frameworks/av/+/2759948



Change-Id: I09f2aef0670e0d0ea7e4d3ad520d7d116f8f5227
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 60d008d5 8ca79808
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -14,6 +14,7 @@
 * limitations under the License.
 */

#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
@@ -40,7 +41,7 @@ MtpMockDatabase::~MtpMockDatabase() {
}

void MtpMockDatabase::addObject(MtpObjectInfo* info) {
    assert(hasStorage(info->storageID));
    assert(hasStorage(info->mStorageID));

    // we take ownership
    mObjects.push_back(info);
+1 −0
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@
#include <MtpDataPacket.h>
#include <MtpDevHandle.h>
#include <MtpPacketFuzzerUtils.h>
#include <functional>
#include <fuzzer/FuzzedDataProvider.h>
#include <utils/String16.h>

+1 −0
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@
#include <MtpStringBuffer.h>
#include <android-base/unique_fd.h>
#include <fcntl.h>
#include <functional>
#include <fuzzer/FuzzedDataProvider.h>
#include <linux/usb/ch9.h>
#include <sys/mman.h>
+1 −0
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@
#include <MtpDevHandle.h>
#include <MtpEventPacket.h>
#include <MtpPacketFuzzerUtils.h>
#include <functional>
#include <fuzzer/FuzzedDataProvider.h>

using namespace android;
+1 −0
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@
#include <MtpDevHandle.h>
#include <MtpPacket.h>
#include <MtpPacketFuzzerUtils.h>
#include <functional>
#include <fuzzer/FuzzedDataProvider.h>
#include <mtp.h>

Loading