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

Side by Side Diff: mojo/public/c/test_support/test_support.h

Issue 814543006: Move //mojo/{public, edk} underneath //third_party (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 11 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
« no previous file with comments | « mojo/public/c/test_support/BUILD.gn ('k') | mojo/public/c/test_support/test_support_export.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 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_PUBLIC_C_TEST_SUPPORT_TEST_SUPPORT_H_
6 #define MOJO_PUBLIC_C_TEST_SUPPORT_TEST_SUPPORT_H_
7
8 // Note: This header should be compilable as C.
9
10 #include <stdio.h>
11
12 #include "mojo/public/c/test_support/test_support_export.h"
13
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17
18 // |sub_test_name| is optional. If not null, it usually describes one particular
19 // configuration of the test. For example, if |test_name| is "TestPacketRate",
20 // |sub_test_name| could be "100BytesPerPacket".
21 // When the perf data is visualized by the performance dashboard, data with
22 // different |sub_test_name|s (but the same |test_name|) are depicted as
23 // different traces on the same chart.
24 MOJO_TEST_SUPPORT_EXPORT void MojoTestSupportLogPerfResult(
25 const char* test_name,
26 const char* sub_test_name,
27 double value,
28 const char* units);
29
30 // Opens a "/"-delimited file path relative to the source root.
31 MOJO_TEST_SUPPORT_EXPORT FILE* MojoTestSupportOpenSourceRootRelativeFile(
32 const char* source_root_relative_path);
33
34 // Enumerates a "/"-delimited directory path relative to the source root.
35 // Returns only regular files. The return value is a heap-allocated array of
36 // heap-allocated strings. Each must be free'd separately.
37 //
38 // The return value is built like so:
39 //
40 // char** rv = (char**) calloc(N + 1, sizeof(char*));
41 // rv[0] = strdup("a");
42 // rv[1] = strdup("b");
43 // rv[2] = strdup("c");
44 // ...
45 // rv[N] = NULL;
46 //
47 MOJO_TEST_SUPPORT_EXPORT
48 char** MojoTestSupportEnumerateSourceRootRelativeDirectory(
49 const char* source_root_relative_path);
50
51 #ifdef __cplusplus
52 } // extern "C"
53 #endif
54
55 #endif // MOJO_PUBLIC_C_TEST_SUPPORT_TEST_SUPPORT_H_
OLDNEW
« no previous file with comments | « mojo/public/c/test_support/BUILD.gn ('k') | mojo/public/c/test_support/test_support_export.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698