blob: 3687c3c48b5669158e6e21464e3354f946b52be0 [file] [log] [blame]
// Copyright (c) 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/strings/string16.h"
#include "chromeos/components/string_matching/tokenized_string.h"
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
if (size < 1 || size % 2 != 0)
return 0;
// Test for base::string16 if size is even.
base::string16 string_input16(reinterpret_cast<const base::char16*>(data),
size / 2);
chromeos::string_matching::TokenizedString tokenized_string_from_string16(
string_input16);
return 0;
}