Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
fuchsia.googlesource.com-third_party-flatbuffers
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
fuchsia-mirror
fuchsia.googlesource.com-third_party-flatbuffers
Commits
ddb1d5ff
Commit
ddb1d5ff
authored
9 years ago
by
Wouter van Oortmerssen
Browse files
Options
Downloads
Patches
Plain Diff
Added a #define for running tests without file access.
Change-Id: Ib2b7aa8a5641cf73fa0d6f2000db7fdd1aabab66 Tested: on Linux.
parent
7ba29dbe
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test.cpp
+2
-1
2 additions, 1 deletion
tests/test.cpp
with
2 additions
and
1 deletion
tests/test.cpp
+
2
−
1
View file @
ddb1d5ff
...
...
@@ -28,6 +28,7 @@ using namespace MyGame::Example;
#include
<android/log.h>
#define TEST_OUTPUT_LINE(...) \
__android_log_print(ANDROID_LOG_INFO, "FlatBuffers", __VA_ARGS__)
#define FLATBUFFERS_NO_FILE_TESTS
#else
#define TEST_OUTPUT_LINE(...) \
{ printf(__VA_ARGS__); printf("\n"); }
...
...
@@ -663,7 +664,7 @@ int main(int /*argc*/, const char * /*argv*/[]) {
MutateFlatBuffersTest
(
flatbuf
.
get
(),
rawbuf
.
length
());
#ifndef
__ANDROID__ // requires file access
#ifndef
FLATBUFFERS_NO_FILE_TESTS
ParseAndGenerateTextTest
();
ParseProtoTest
();
#endif
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment