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

Unified Diff: test/android/writefile.c

Issue 301373002: android: Support host multilib builds. (Closed) Base URL: http://gyp.googlecode.com/svn/trunk
Patch Set: Fix build warning in test Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/android/host_32or64.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/android/writefile.c
diff --git a/test/android/writefile.c b/test/android/writefile.c
new file mode 100644
index 0000000000000000000000000000000000000000..3f5960f8915e689aef8ac7e6557fe23dddcb4dc6
--- /dev/null
+++ b/test/android/writefile.c
@@ -0,0 +1,18 @@
+/* Copyright (c) 2014 Google Inc. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#include <stdio.h>
+
+extern const char* getString(void);
+
+int main(int argc, char* argv[])
+{
+ if (argc < 2) return 2;
+ FILE* f = fopen(argv[1], "w");
+ if (f == NULL) return 1;
+ fprintf(f, "%s", getString());
+ fclose(f);
+ return 0;
+}
« no previous file with comments | « test/android/host_32or64.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698