Lines Matching refs:argv
114 void populateArgv(std::vector<const char*> options, char** argv) { in populateArgv() argument
116 argv[i] = const_cast<char*>(options.at(i)); in populateArgv()
125 char* argv[options.size()]; in TEST_F() local
127 populateArgv(options, argv); in TEST_F()
128 coordinator.parseOptions(options.size(), argv, "", [&](int /* res */, char* /* arg */) { in TEST_F()
141 char* argv[options.size()]; in TEST_F() local
143 populateArgv(options, argv); in TEST_F()
144 EXPECT_DEATH(coordinator.parseOptions(options.size(), argv, "", in TEST_F()
157 char* argv[options.size()]; in TEST_F() local
159 populateArgv(options, argv); in TEST_F()
160 coordinator.parseOptions(options.size(), argv, "", [&](int /* res */, char* /* arg */) { in TEST_F()
178 char* argv[options.size()]; in TEST_F() local
180 populateArgv(options, argv); in TEST_F()
184 coordinator.parseOptions(options.size(), argv, optstring, [&](int res, char* arg) { in TEST_F()
192 EXPECT_STREQ(argv[2] /* "yvalue" */, arg); in TEST_F()
205 int main(int argc, char **argv) { in main() argument
206 ::testing::InitGoogleTest(&argc, argv); in main()