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

Unified Diff: testing/libfuzzer/tests/fuzzer_launcher_test.cc

Issue 2714053003: Fix GCC build for target 'all' (Closed)
Patch Set: #if defined(__GNUC__) Created 3 years, 10 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
Index: testing/libfuzzer/tests/fuzzer_launcher_test.cc
diff --git a/testing/libfuzzer/tests/fuzzer_launcher_test.cc b/testing/libfuzzer/tests/fuzzer_launcher_test.cc
index 625a821b44f0bd05815557ac93cf13a3b4b5ac48..bd7cbc33765be6f472117ebcfac6c654b582cde2 100644
--- a/testing/libfuzzer/tests/fuzzer_launcher_test.cc
+++ b/testing/libfuzzer/tests/fuzzer_launcher_test.cc
@@ -23,7 +23,8 @@ TEST(FuzzerConfigTest, DictOnly) {
exe_path.DirName().Append("check_fuzzer_config.py").value();
std::string output;
- base::CommandLine cmd({{launcher_path, "test_dict_only.options"}});
+ base::CommandLine cmd(
+ std::vector<std::string>({launcher_path, "test_dict_only.options"}));
bool success = base::GetAppOutputAndError(cmd, &output);
EXPECT_TRUE(success);
std::vector<std::string> fuzzer_args = base::SplitString(
@@ -43,7 +44,8 @@ TEST(FuzzerConfigTest, ConfigOnly) {
exe_path.DirName().Append("check_fuzzer_config.py").value();
std::string output;
- base::CommandLine cmd({{launcher_path, "test_config_only.options"}});
+ base::CommandLine cmd(
+ std::vector<std::string>({launcher_path, "test_config_only.options"}));
bool success = base::GetAppOutputAndError(cmd, &output);
EXPECT_TRUE(success);
std::vector<std::string> fuzzer_args = base::SplitString(
@@ -64,7 +66,8 @@ TEST(FuzzerConfigTest, ConfigAndDict) {
exe_path.DirName().Append("check_fuzzer_config.py").value();
std::string output;
- base::CommandLine cmd({{launcher_path, "test_config_and_dict.options"}});
+ base::CommandLine cmd(std::vector<std::string>(
+ {launcher_path, "test_config_and_dict.options"}));
bool success = base::GetAppOutputAndError(cmd, &output);
EXPECT_TRUE(success);
std::vector<std::string> fuzzer_args = base::SplitString(
@@ -87,8 +90,8 @@ TEST(FuzzerConfigTest, ConfigAndSeedCorpus) {
exe_path.DirName().Append("check_fuzzer_config.py").value();
std::string output;
- base::CommandLine cmd(
- {{launcher_path, "test_config_and_seed_corpus.options"}});
+ base::CommandLine cmd(std::vector<std::string>(
+ {launcher_path, "test_config_and_seed_corpus.options"}));
bool success = base::GetAppOutputAndError(cmd, &output);
EXPECT_TRUE(success);
std::vector<std::string> fuzzer_args = base::SplitString(
@@ -103,8 +106,8 @@ TEST(FuzzerConfigTest, ConfigAndSeedCorpus) {
launcher_path =
exe_path.DirName().Append("check_seed_corpus_archive.py").value();
- cmd = base::CommandLine(
- {{launcher_path, "test_config_and_seed_corpus_seed_corpus.zip"}});
+ cmd = base::CommandLine(std::vector<std::string>(
+ {launcher_path, "test_config_and_seed_corpus_seed_corpus.zip"}));
success = base::GetAppOutputAndError(cmd, &output);
EXPECT_TRUE(success);
std::vector<std::string> seed_corpus_info = base::SplitString(
@@ -123,8 +126,8 @@ TEST(FuzzerConfigTest, ConfigAndSeedCorpuses) {
exe_path.DirName().Append("check_fuzzer_config.py").value();
std::string output;
- base::CommandLine cmd(
- {{launcher_path, "test_config_and_seed_corpuses.options"}});
+ base::CommandLine cmd(std::vector<std::string>(
+ {launcher_path, "test_config_and_seed_corpuses.options"}));
bool success = base::GetAppOutputAndError(cmd, &output);
EXPECT_TRUE(success);
std::vector<std::string> fuzzer_args = base::SplitString(
@@ -139,8 +142,8 @@ TEST(FuzzerConfigTest, ConfigAndSeedCorpuses) {
launcher_path =
exe_path.DirName().Append("check_seed_corpus_archive.py").value();
- cmd = base::CommandLine(
- {{launcher_path, "test_config_and_seed_corpuses_seed_corpus.zip"}});
+ cmd = base::CommandLine(std::vector<std::string>(
+ {launcher_path, "test_config_and_seed_corpuses_seed_corpus.zip"}));
success = base::GetAppOutputAndError(cmd, &output);
EXPECT_TRUE(success);
std::vector<std::string> seed_corpus_info = base::SplitString(
@@ -159,7 +162,8 @@ TEST(FuzzerConfigTest, DictSubdir) {
exe_path.DirName().Append("check_fuzzer_config.py").value();
std::string output;
- base::CommandLine cmd({{launcher_path, "test_dict_from_subdir.options"}});
+ base::CommandLine cmd(std::vector<std::string>(
+ {launcher_path, "test_dict_from_subdir.options"}));
bool success = base::GetAppOutputAndError(cmd, &output);
EXPECT_TRUE(success);
std::vector<std::string> fuzzer_args = base::SplitString(
« no previous file with comments | « remoting/host/security_key/fake_security_key_ipc_server.cc ('k') | third_party/WebKit/Source/core/page/NetworkStateNotifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698