1 // Copyright 2022 The PDFium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "testing/command_line_helpers.h" 6 ParseSwitchKeyValue(const std::string & arg,const std::string & key,std::string * value)7bool ParseSwitchKeyValue(const std::string& arg, 8 const std::string& key, 9 std::string* value) { 10 if (arg.size() <= key.size() || arg.compare(0, key.size(), key) != 0) 11 return false; 12 13 *value = arg.substr(key.size()); 14 return true; 15 } 16 GetDefaultRendererType()17FPDF_RENDERER_TYPE GetDefaultRendererType() { 18 #if defined(_SKIA_SUPPORT_) 19 return FPDF_RENDERERTYPE_SKIA; 20 #else 21 return FPDF_RENDERERTYPE_AGG; 22 #endif 23 } 24