diff options
author | Bertrand SIMONNET <bsimonnet@chromium.org> | 2015-06-29 11:26:47 -0700 |
---|---|---|
committer | Bertrand SIMONNET <bsimonnet@google.com> | 2015-07-30 17:20:46 -0700 |
commit | 610a058d967931e6861b43eacc79a7b8c8488b5a (patch) | |
tree | 2d28046e70e617b79dbe7cba22e6d3778e1d9f54 /testrunner_android.cc | |
parent | cd4f5d14a3c48fddff6df30db1e333365f14127c (diff) | |
download | platform_external_libbrillo-610a058d967931e6861b43eacc79a7b8c8488b5a.tar.gz platform_external_libbrillo-610a058d967931e6861b43eacc79a7b8c8488b5a.tar.bz2 platform_external_libbrillo-610a058d967931e6861b43eacc79a7b8c8488b5a.zip |
testrunner: Create a test runner for android.
On android, glib is not available so the test runner has to be adapted.
As the test runner is small, instead of guarding the glib commands with
defined() statement, create an android specific testrunner.
BUG: 22372020
Change-Id: I4e5117243aa320975d79f2ff9f09d70f9836474b
Diffstat (limited to 'testrunner_android.cc')
-rw-r--r-- | testrunner_android.cc | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/testrunner_android.cc b/testrunner_android.cc new file mode 100644 index 0000000..e776bc1 --- /dev/null +++ b/testrunner_android.cc @@ -0,0 +1,26 @@ +//Copyright (C) 2015 The Android Open Source Project +// +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. + +// based on testrunner.cc with the glib bits removed. + +#include <gtest/gtest.h> + +#include <base/at_exit.h> +#include <chromeos/test_helpers.h> + +int main(int argc, char** argv) { + base::AtExitManager at_exit_manager; + SetUpTests(&argc, argv, true); + return RUN_ALL_TESTS(); +} |