Implement listing tests to a JSON file for iOS gtest test launcher
[chromium-blink-merge.git] / base / test / gtest_util.h
blob93382f846665c514e48f8cfc3a3cae9b1f4cfe44
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.
5 #ifndef BASE_TEST_GTEST_UTIL_H_
6 #define BASE_TEST_GTEST_UTIL_H_
8 #include <string>
9 #include <utility>
10 #include <vector>
12 #include "base/compiler_specific.h"
14 namespace base {
16 class FilePath;
18 // First value is test case name, second one is test name.
19 typedef std::pair<std::string, std::string> SplitTestName;
21 // Returns a vector of gtest-based tests compiled into
22 // current executable.
23 std::vector<SplitTestName> GetCompiledInTests();
25 // Writes the list of gtest-based tests compiled into
26 // current executable as a JSON file. Returns true on success.
27 bool WriteCompiledInTestsToFile(const FilePath& path) WARN_UNUSED_RESULT;
29 } // namespace base
31 #endif // BASE_TEST_GTEST_UTIL_H_