Home | History | Annotate | Download | only in test

Lines Matching refs:test_flag

1192 DEFINE_int32(test_flag, -1, "used for testing gflags.cc");
1194 // Parses and returns the --test_flag flag.
1220 "--test_flag=1",
1221 "--test_flag=2",
1245 "--test_flag=0",
1259 "--test_flag=3",
1271 "--test_flag=0",
1273 "--test_flag=3",
1285 "--test_flag=0",
1296 "--test_flag=7",
1298 "--test_flag=0",
1310 "--test_flag=0",
1394 "--test_flag=5",
1406 EXPECT_NE("", SetCommandLineOptionWithMode("test_flag", "5",
1415 EXPECT_NE("", SetCommandLineOptionWithMode("test_flag", "5",
1417 EXPECT_NE("", SetCommandLineOptionWithMode("test_flag", "5",
1419 EXPECT_NE("", SetCommandLineOption("test_flag", "5"));
1427 "--test_flag=50",
1432 "ERROR: failed validation of new value '50' for flag 'test_flag'");
1440 EXPECT_EQ("", SetCommandLineOptionWithMode("test_flag", "50",
1450 EXPECT_EQ("", SetCommandLineOptionWithMode("test_flag", "50",
1452 EXPECT_EQ("", SetCommandLineOptionWithMode("test_flag", "50",
1454 EXPECT_EQ("", SetCommandLineOption("test_flag", "50"));
1469 "ERROR: --test_flag must be set on the commandline");
1492 info = GetCommandLineFlagInfoOrDie("test_flag");
1496 info = GetCommandLineFlagInfoOrDie("test_flag");
1500 info = GetCommandLineFlagInfoOrDie("test_flag");
1508 EXPECT_EQ("", SetCommandLineOption("test_flag", "50")); // fails validation
1510 EXPECT_NE("", SetCommandLineOption("test_flag", "50")); // validator is gone
1516 EXPECT_NE("", SetCommandLineOption("test_flag", "50")); // no validator
1518 EXPECT_EQ("", SetCommandLineOption("test_flag", "50")); // validator is back