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

Side by Side Diff: mojo/public/interfaces/bindings/tests/validation_parser/validation_parser.h

Issue 2250183003: Make the fuchsia mojo/public repo the source of truth. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 4 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef MOJO_VALIDATION_PARSER_H_
6 #define MOJO_VALIDATION_PARSER_H_
7
8 #include <stdint.h>
9 #include <string.h>
10
11 // Parses a validation test read in as a bunch of characters.
12 //
13 // On success, returns a null pointer and a allocates a buffer pointed to
14 // by *data that must be freed by the caller. *data_len contains the buffer's
15 // size. *num_handles contains the number of handles found by the parser.
16 //
17 // On failure, returns a buffer containing an error message which must be freed
18 // by the caller, null in *data, and 0 in *data_len. *num_handles contains 0.
19 extern "C" __attribute__((visibility("default"))) char* ParseValidationTest(
20 const char* input, // Input
21 size_t* num_handles, // Output
22 uint8_t** data, // Output
23 size_t* data_len); // Output
24
25 #endif // MOJO_VALIDATION_PARSER_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698