1 /* ------------------------------------------------------------------ 2 * Copyright (C) 1998-2009 PacketVideo 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 13 * express or implied. 14 * See the License for the specific language governing permissions 15 * and limitations under the License. 16 * ------------------------------------------------------------------- 17 */ 18 #include "unit_test_args.h" 19 20 21 22 void cmd_line_linux::setup(int , oscl_wchar**) 23 { 24 argc = 0; 25 argv = NULL; 26 } 27 28 void cmd_line_linux::setup(int count, char** cmd_argv) 29 { 30 argc = count; 31 argv = cmd_argv; 32 } 33 34 35 int cmd_line_linux::get_count(void) 36 { 37 return argc; 38 } 39 40 void cmd_line_linux::get_arg(int n, char* &arg) 41 { 42 if (n > argc) 43 arg = NULL; 44 else 45 arg = argv[n]; 46 } 47 48 void cmd_line_linux::get_arg(int , oscl_wchar *&arg) 49 { 50 arg = NULL; 51 } 52 53 bool cmd_line_linux::is_wchar(void) 54 { 55 return false; 56 } 57 58