/external/libchrome/base/ |
D | command_line.cc | 27 CommandLine* CommandLine::current_process_commandline_ = nullptr; 31 const CommandLine::CharType kSwitchTerminator[] = FILE_PATH_LITERAL("--"); 32 const CommandLine::CharType kSwitchValueSeparator[] = FILE_PATH_LITERAL("="); 40 const CommandLine::CharType* const kSwitchPrefixes[] = {L"--", L"-", L"/"}; 43 const CommandLine::CharType* const kSwitchPrefixes[] = {"--", "-"}; 47 size_t GetSwitchPrefixLength(const CommandLine::StringType& string) { in GetSwitchPrefixLength() 49 CommandLine::StringType prefix(kSwitchPrefixes[i]); in GetSwitchPrefixLength() 58 bool IsSwitch(const CommandLine::StringType& string, in IsSwitch() 59 CommandLine::StringType* switch_string, in IsSwitch() 60 CommandLine::StringType* switch_value) { in IsSwitch() [all …]
|
D | command_line_unittest.cc | 23 static const CommandLine::StringType kTrickyQuoted = 27 static const CommandLine::StringType kTricky = 31 const CommandLine::CharType* argv[] = { in TEST() 50 CommandLine cl(arraysize(argv), argv); in TEST() 84 const CommandLine::StringVector& args = cl.GetArgs(); in TEST() 87 std::vector<CommandLine::StringType>::const_iterator iter = args.begin(); in TEST() 109 CommandLine cl = CommandLine::FromString( in TEST() 148 const CommandLine::StringVector& args = cl.GetArgs(); in TEST() 151 std::vector<CommandLine::StringType>::const_iterator iter = args.begin(); in TEST() 165 CommandLine cl_duplicate = CommandLine::FromString(cl.GetCommandLineString()); in TEST() [all …]
|
D | command_line.h | 32 class BASE_EXPORT CommandLine { 47 explicit CommandLine(NoProgram no_program); 50 explicit CommandLine(const FilePath& program); 53 CommandLine(int argc, const CharType* const* argv); 54 explicit CommandLine(const StringVector& argv); 57 CommandLine(const CommandLine& other); 58 CommandLine& operator=(const CommandLine& other); 60 ~CommandLine(); 98 static CommandLine* ForCurrentProcess(); 104 static CommandLine FromString(const string16& command_line); [all …]
|
/external/cronet/tot/base/ |
D | command_line.cc | 41 CommandLine* CommandLine::current_process_commandline_ = nullptr; 47 constexpr CommandLine::CharType kSwitchTerminator[] = FILE_PATH_LITERAL("--"); 48 constexpr CommandLine::CharType kSwitchValueSeparator[] = 57 constexpr CommandLine::StringViewType kSwitchPrefixes[] = {L"--", L"-", L"/"}; 60 constexpr CommandLine::StringViewType kSwitchPrefixes[] = {"--", "-"}; 71 constexpr CommandLine::CharType kSingleArgument[] = 75 size_t GetSwitchPrefixLength(CommandLine::StringViewType string) { in GetSwitchPrefixLength() 77 CommandLine::StringType prefix(kSwitchPrefixes[i]); in GetSwitchPrefixLength() 86 bool IsSwitch(const CommandLine::StringType& string, in IsSwitch() 87 CommandLine::StringType* switch_string, in IsSwitch() [all …]
|
D | command_line_unittest.cc | 48 static const CommandLine::StringType kTrickyQuoted = 54 static const CommandLine::StringType kTricky = 58 const CommandLine::CharType* argv[] = { in TEST() 77 CommandLine cl(std::size(argv), argv); in TEST() 111 const CommandLine::StringVector& args = cl.GetArgs(); in TEST() 135 CommandLine::StringVector argv = {FILE_PATH_LITERAL("--switch1"), in TEST() 138 CommandLine cl = CommandLine::FromArgvWithoutProgram(argv); in TEST() 147 CommandLine cl = CommandLine::FromString( in TEST() 186 const CommandLine::StringVector& args = cl.GetArgs(); in TEST() 189 std::vector<CommandLine::StringType>::const_iterator iter = args.begin(); in TEST() [all …]
|
D | command_line.h | 43 class BASE_EXPORT CommandLine { 60 static CommandLine FromArgvWithoutProgram(const StringVector& argv); 63 static CommandLine FromString(StringViewType command_line); 68 explicit CommandLine(NoProgram no_program); 71 explicit CommandLine(const FilePath& program); 74 CommandLine(int argc, const CharType* const* argv); 75 explicit CommandLine(const StringVector& argv); 81 CommandLine(const CommandLine& other); 82 CommandLine& operator=(const CommandLine& other); 84 CommandLine(CommandLine&& other) noexcept; [all …]
|
D | command_line_fuzzer.cc | 24 CommandLine::StringType GenerateNativeString(FuzzedDataProvider& provider) { in GenerateNativeString() 33 CommandLine::StringVector GenerateNativeStringVector( in GenerateNativeStringVector() 35 CommandLine::StringVector strings( in GenerateNativeStringVector() 63 CommandLine command_line(CommandLine::NO_PROGRAM); in LLVMFuzzerTestOneInput() 69 command_line = CommandLine(GenerateFilePath(provider)); in LLVMFuzzerTestOneInput() 72 command_line = CommandLine(GenerateNativeStringVector(provider)); in LLVMFuzzerTestOneInput() 88 CommandLine::StringType value = GenerateNativeString(provider); in LLVMFuzzerTestOneInput() 107 CommandLine::StringType arg = GenerateNativeString(provider); in LLVMFuzzerTestOneInput() 114 CommandLine::StringType wrapper = GenerateNativeString(provider); in LLVMFuzzerTestOneInput()
|
/external/cronet/stable/base/ |
D | command_line.cc | 41 CommandLine* CommandLine::current_process_commandline_ = nullptr; 47 constexpr CommandLine::CharType kSwitchTerminator[] = FILE_PATH_LITERAL("--"); 48 constexpr CommandLine::CharType kSwitchValueSeparator[] = 57 constexpr CommandLine::StringViewType kSwitchPrefixes[] = {L"--", L"-", L"/"}; 60 constexpr CommandLine::StringViewType kSwitchPrefixes[] = {"--", "-"}; 71 constexpr CommandLine::CharType kSingleArgument[] = 75 size_t GetSwitchPrefixLength(CommandLine::StringViewType string) { in GetSwitchPrefixLength() 77 CommandLine::StringType prefix(kSwitchPrefixes[i]); in GetSwitchPrefixLength() 86 bool IsSwitch(const CommandLine::StringType& string, in IsSwitch() 87 CommandLine::StringType* switch_string, in IsSwitch() [all …]
|
D | command_line_unittest.cc | 48 static const CommandLine::StringType kTrickyQuoted = 54 static const CommandLine::StringType kTricky = 58 const CommandLine::CharType* argv[] = { in TEST() 77 CommandLine cl(std::size(argv), argv); in TEST() 111 const CommandLine::StringVector& args = cl.GetArgs(); in TEST() 135 CommandLine::StringVector argv = {FILE_PATH_LITERAL("--switch1"), in TEST() 138 CommandLine cl = CommandLine::FromArgvWithoutProgram(argv); in TEST() 147 CommandLine cl = CommandLine::FromString( in TEST() 186 const CommandLine::StringVector& args = cl.GetArgs(); in TEST() 189 std::vector<CommandLine::StringType>::const_iterator iter = args.begin(); in TEST() [all …]
|
D | command_line.h | 43 class BASE_EXPORT CommandLine { 60 static CommandLine FromArgvWithoutProgram(const StringVector& argv); 63 static CommandLine FromString(StringViewType command_line); 68 explicit CommandLine(NoProgram no_program); 71 explicit CommandLine(const FilePath& program); 74 CommandLine(int argc, const CharType* const* argv); 75 explicit CommandLine(const StringVector& argv); 81 CommandLine(const CommandLine& other); 82 CommandLine& operator=(const CommandLine& other); 84 CommandLine(CommandLine&& other) noexcept; [all …]
|
D | command_line_fuzzer.cc | 24 CommandLine::StringType GenerateNativeString(FuzzedDataProvider& provider) { in GenerateNativeString() 33 CommandLine::StringVector GenerateNativeStringVector( in GenerateNativeStringVector() 35 CommandLine::StringVector strings( in GenerateNativeStringVector() 63 CommandLine command_line(CommandLine::NO_PROGRAM); in LLVMFuzzerTestOneInput() 69 command_line = CommandLine(GenerateFilePath(provider)); in LLVMFuzzerTestOneInput() 72 command_line = CommandLine(GenerateNativeStringVector(provider)); in LLVMFuzzerTestOneInput() 88 CommandLine::StringType value = GenerateNativeString(provider); in LLVMFuzzerTestOneInput() 107 CommandLine::StringType arg = GenerateNativeString(provider); in LLVMFuzzerTestOneInput() 114 CommandLine::StringType wrapper = GenerateNativeString(provider); in LLVMFuzzerTestOneInput()
|
/external/libchrome-gestures/src/ |
D | command_line.cc | 16 CommandLine* CommandLine::current_process_commandline_ = nullptr; 20 const CommandLine::CharType kSwitchTerminator[] = "--"; 21 const CommandLine::CharType kSwitchValueSeparator[] = "="; 26 const CommandLine::CharType* const kSwitchPrefixes[] = {"--", "-"}; 57 void AppendSwitchesAndArguments(CommandLine& command_line, in AppendSwitchesAndArguments() 58 const CommandLine::StringVector& argv) { in AppendSwitchesAndArguments() 77 CommandLine::CommandLine() in CommandLine() function in gestures::CommandLine 81 CommandLine::~CommandLine() {} in ~CommandLine() 84 bool CommandLine::Init(int argc, const char* const* argv) { in Init() 92 current_process_commandline_ = new CommandLine(); in Init() [all …]
|
/external/clang/unittests/Tooling/ |
D | CompilationDatabaseTest.cpp | 115 ASSERT_EQ(1u, Commands[0].CommandLine.size()); in TEST() 116 EXPECT_EQ(Command1, Commands[0].CommandLine[0]) << ErrorMessage; in TEST() 119 ASSERT_EQ(1u, Commands[1].CommandLine.size()); in TEST() 120 EXPECT_EQ(Command2, Commands[1].CommandLine[0]) << ErrorMessage; in TEST() 134 ASSERT_EQ(1u, Commands[0].CommandLine.size()); in TEST() 135 EXPECT_EQ(Command2, Commands[0].CommandLine[0]) << ErrorMessage; in TEST() 138 ASSERT_EQ(1u, Commands[1].CommandLine.size()); in TEST() 139 EXPECT_EQ(Command1, Commands[1].CommandLine[0]) << ErrorMessage; in TEST() 171 EXPECT_EQ(1u, FoundCommand.CommandLine.size()) << ErrorMessage; in TEST() 172 EXPECT_EQ(Arguments, FoundCommand.CommandLine[0]) << ErrorMessage; in TEST() [all …]
|
/external/cronet/stable/base/test/launcher/ |
D | unit_test_launcher.cc | 141 if (!CommandLine::ForCurrentProcess()->HasSwitch(switch_name)) in GetSwitchValueAsInt() 145 CommandLine::ForCurrentProcess()->GetSwitchValueASCII(switch_name); in GetSwitchValueAsInt() 162 if (CommandLine::ForCurrentProcess()->HasSwitch( in RunTestSuite() 177 if (CommandLine::ForCurrentProcess()->HasSwitch(kGTestHelpFlag) || in RunTestSuite() 178 CommandLine::ForCurrentProcess()->HasSwitch(kGTestListTestsFlag) || in RunTestSuite() 179 CommandLine::ForCurrentProcess()->HasSwitch( in RunTestSuite() 181 CommandLine::ForCurrentProcess()->HasSwitch( in RunTestSuite() 183 CommandLine::ForCurrentProcess()->HasSwitch(switches::kFuzz) || in RunTestSuite() 184 CommandLine::ForCurrentProcess()->HasSwitch(switches::kFuzzFor) || in RunTestSuite() 185 CommandLine::ForCurrentProcess()->HasSwitch(switches::kListFuzzTests) || in RunTestSuite() [all …]
|
/external/cronet/tot/base/test/launcher/ |
D | unit_test_launcher.cc | 141 if (!CommandLine::ForCurrentProcess()->HasSwitch(switch_name)) in GetSwitchValueAsInt() 145 CommandLine::ForCurrentProcess()->GetSwitchValueASCII(switch_name); in GetSwitchValueAsInt() 162 if (CommandLine::ForCurrentProcess()->HasSwitch( in RunTestSuite() 177 if (CommandLine::ForCurrentProcess()->HasSwitch(kGTestHelpFlag) || in RunTestSuite() 178 CommandLine::ForCurrentProcess()->HasSwitch(kGTestListTestsFlag) || in RunTestSuite() 179 CommandLine::ForCurrentProcess()->HasSwitch( in RunTestSuite() 181 CommandLine::ForCurrentProcess()->HasSwitch( in RunTestSuite() 183 CommandLine::ForCurrentProcess()->HasSwitch(switches::kFuzz) || in RunTestSuite() 184 CommandLine::ForCurrentProcess()->HasSwitch(switches::kFuzzFor) || in RunTestSuite() 185 CommandLine::ForCurrentProcess()->HasSwitch(switches::kListFuzzTests) || in RunTestSuite() [all …]
|
/external/deqp/framework/common/ |
D | tcuCommandLine.cpp | 969 CommandLine::CommandLine(void) : m_appName(), m_logFlags(0), m_hadHelpSpecified(false) in CommandLine() function in tcu::CommandLine 981 CommandLine::CommandLine(int argc, const char *const *argv) in CommandLine() function in tcu::CommandLine 1014 CommandLine::CommandLine(const std::string &cmdLine) : m_appName(), m_initialCmdLine(cmdLine), m_ha… in CommandLine() function in tcu::CommandLine 1020 CommandLine::~CommandLine(void) in ~CommandLine() 1024 void CommandLine::clear(void) in clear() 1030 const de::cmdline::CommandLine &CommandLine::getCommandLine(void) const in getCommandLine() 1035 const std::string &CommandLine::getApplicationName(void) const in getApplicationName() 1040 const std::string &CommandLine::getInitialCmdLine(void) const in getInitialCmdLine() 1045 void CommandLine::registerExtendedOptions(de::cmdline::Parser &parser) in registerExtendedOptions() 1056 bool CommandLine::parse(int argc, const char *const *argv) in parse() [all …]
|
D | tcuCommandLine.hpp | 103 CaseListFilter(const de::cmdline::CommandLine &cmdLine, const tcu::Archive &archive); 139 class CommandLine class 142 CommandLine(void); 143 CommandLine(int argc, const char *const *argv); 144 explicit CommandLine(const std::string &cmdLine); 145 virtual ~CommandLine(void); 363 const de::cmdline::CommandLine &getCommandLine(void) const; 366 CommandLine(const CommandLine &); // not allowed! 367 CommandLine &operator=(const CommandLine &); // not allowed! 374 de::cmdline::CommandLine m_cmdLine;
|
/external/cronet/stable/base/android/ |
D | command_line_android.cc | 19 using base::CommandLine; 26 CommandLine extra_command_line(vec); in AppendToCommandLine() 27 CommandLine::ForCurrentProcess()->AppendArguments(extra_command_line, in AppendToCommandLine() 35 return CommandLine::ForCurrentProcess()->HasSwitch(switch_string); in JNI_CommandLine_HasSwitch() 40 return CommandLine::ForCurrentProcess()->GetSwitchValueNative(switch_string); in JNI_CommandLine_GetSwitchValue() 48 for (const auto& entry : CommandLine::ForCurrentProcess()->GetSwitches()) { in JNI_CommandLine_GetSwitchesFlattened() 57 CommandLine::ForCurrentProcess()->AppendSwitch(switch_string); in JNI_CommandLine_AppendSwitch() 63 CommandLine::ForCurrentProcess()->AppendSwitchASCII(switch_string, in JNI_CommandLine_AppendSwitchWithValue() 75 CommandLine::ForCurrentProcess()->RemoveSwitch(switch_string); in JNI_CommandLine_RemoveSwitch() 82 CommandLine::Init(0, nullptr); in JNI_CommandLine_Init()
|
/external/cronet/tot/base/android/ |
D | command_line_android.cc | 19 using base::CommandLine; 26 CommandLine extra_command_line(vec); in AppendToCommandLine() 27 CommandLine::ForCurrentProcess()->AppendArguments(extra_command_line, in AppendToCommandLine() 35 return CommandLine::ForCurrentProcess()->HasSwitch(switch_string); in JNI_CommandLine_HasSwitch() 40 return CommandLine::ForCurrentProcess()->GetSwitchValueNative(switch_string); in JNI_CommandLine_GetSwitchValue() 48 for (const auto& entry : CommandLine::ForCurrentProcess()->GetSwitches()) { in JNI_CommandLine_GetSwitchesFlattened() 57 CommandLine::ForCurrentProcess()->AppendSwitch(switch_string); in JNI_CommandLine_AppendSwitch() 63 CommandLine::ForCurrentProcess()->AppendSwitchASCII(switch_string, in JNI_CommandLine_AppendSwitchWithValue() 75 CommandLine::ForCurrentProcess()->RemoveSwitch(switch_string); in JNI_CommandLine_RemoveSwitch() 82 CommandLine::Init(0, nullptr); in JNI_CommandLine_Init()
|
/external/cronet/tot/base/android/javatests/src/org/chromium/base/ |
D | CommandLineTest.java | 49 CommandLine.resetForTesting(false); in setUp() 53 Assert.assertFalse(CommandLine.isNativeImplementationForTesting()); in loadJni() 55 Assert.assertTrue(CommandLine.isNativeImplementationForTesting()); in loadJni() 59 CommandLine cl = CommandLine.getInstance(); in checkInitSwitches() 73 CommandLine cl = CommandLine.getInstance(); in checkSettingThenGetting() 99 CommandLine cl = CommandLine.getInstance(); in checkAppendedSwitchesPassedThrough() 109 CommandLine.init(INIT_SWITCHES); in testJavaNativeTransition() 120 CommandLine.init(INIT_SWITCHES); in testJavaNativeTransitionAfterAppends() 132 CommandLine.init(null); in testNativeInitialization() 137 CommandLine.getInstance().appendSwitchesAndArguments(args); in testNativeInitialization()
|
/external/cronet/stable/base/android/javatests/src/org/chromium/base/ |
D | CommandLineTest.java | 49 CommandLine.resetForTesting(false); in setUp() 53 Assert.assertFalse(CommandLine.isNativeImplementationForTesting()); in loadJni() 55 Assert.assertTrue(CommandLine.isNativeImplementationForTesting()); in loadJni() 59 CommandLine cl = CommandLine.getInstance(); in checkInitSwitches() 73 CommandLine cl = CommandLine.getInstance(); in checkSettingThenGetting() 99 CommandLine cl = CommandLine.getInstance(); in checkAppendedSwitchesPassedThrough() 109 CommandLine.init(INIT_SWITCHES); in testJavaNativeTransition() 120 CommandLine.init(INIT_SWITCHES); in testJavaNativeTransitionAfterAppends() 132 CommandLine.init(null); in testNativeInitialization() 137 CommandLine.getInstance().appendSwitchesAndArguments(args); in testNativeInitialization()
|
/external/libchrome/base/test/ |
D | test_suite.cc | 86 : old_command_line_(CommandLine::NO_PROGRAM) { in TestClientInitializer() 90 old_command_line_ = *CommandLine::ForCurrentProcess(); in OnTestStart() 94 *CommandLine::ForCurrentProcess() = old_command_line_; in OnTestEnd() 98 CommandLine old_command_line_; 107 const base::CommandLine& command_line = in GetProfileName() 108 *base::CommandLine::ForCurrentProcess(); in GetProfileName() 164 CommandLine::Reset(); in ~TestSuite() 168 initialized_command_line_ = CommandLine::Init(argc, argv); in InitializeFromCommandLine() 180 initialized_command_line_ = CommandLine::Init(argc, NULL); in InitializeFromCommandLine() 228 if (!CommandLine::ForCurrentProcess()->HasSwitch( in AddTestLauncherResultPrinter() [all …]
|
D | multiprocess_test.cc | 18 const CommandLine& base_command_line, in SpawnMultiProcessTestChild() 20 CommandLine command_line(base_command_line); in SpawnMultiProcessTestChild() 44 CommandLine GetMultiProcessTestChildBaseCommandLine() { in GetMultiProcessTestChildBaseCommandLine() 46 CommandLine cmd_line = *CommandLine::ForCurrentProcess(); in GetMultiProcessTestChildBaseCommandLine() 71 CommandLine MultiProcessTest::MakeCmdLine(const std::string& procname) { in MakeCmdLine() 72 CommandLine command_line = GetMultiProcessTestChildBaseCommandLine(); in MakeCmdLine()
|
/external/cronet/tot/base/test/ |
D | multiprocess_test.cc | 18 const CommandLine& base_command_line, in SpawnMultiProcessTestChild() 20 CommandLine command_line(base_command_line); in SpawnMultiProcessTestChild() 44 CommandLine GetMultiProcessTestChildBaseCommandLine() { in GetMultiProcessTestChildBaseCommandLine() 46 CommandLine cmd_line = *CommandLine::ForCurrentProcess(); in GetMultiProcessTestChildBaseCommandLine() 68 CommandLine MultiProcessTest::MakeCmdLine(const std::string& procname) { in MakeCmdLine() 69 CommandLine command_line = GetMultiProcessTestChildBaseCommandLine(); in MakeCmdLine()
|
/external/cronet/stable/base/test/ |
D | multiprocess_test.cc | 18 const CommandLine& base_command_line, in SpawnMultiProcessTestChild() 20 CommandLine command_line(base_command_line); in SpawnMultiProcessTestChild() 44 CommandLine GetMultiProcessTestChildBaseCommandLine() { in GetMultiProcessTestChildBaseCommandLine() 46 CommandLine cmd_line = *CommandLine::ForCurrentProcess(); in GetMultiProcessTestChildBaseCommandLine() 68 CommandLine MultiProcessTest::MakeCmdLine(const std::string& procname) { in MakeCmdLine() 69 CommandLine command_line = GetMultiProcessTestChildBaseCommandLine(); in MakeCmdLine()
|