xref: /aosp_15_r20/external/libchrome-gestures/src/test_main.cc (revision aed3e5085e770be5b69ce25295ecf6ddf906af95)
1 // Copyright 2012 The ChromiumOS Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include <stdarg.h>
6 #include <stdio.h>
7 
8 #include <gtest/gtest.h>
9 
10 #include "include/command_line.h"
11 #include "include/gestures.h"
12 
main(int argc,char ** argv)13 int main(int argc, char **argv) {
14   gestures::CommandLine::Init(argc, argv);
15   ::testing::InitGoogleTest(&argc, argv);
16   return RUN_ALL_TESTS();
17 }
18 
19 extern "C" {
20 
21 // Provide this symbol for unittests
gestures_log(int verb,const char * fmt,...)22 void gestures_log(int verb, const char* fmt, ...) {
23   va_list args;
24   va_start(args, fmt);
25   vfprintf(stdout, fmt, args);
26   va_end(args);
27 }
28 
29 }
30