5 * This code is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License version 2 only, as 7 * published by the Free Software Foundation. 8 * 9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 24 #include "precompiled.hpp" 25 #include "prims/jvm.h" 26 #include "runtime/arguments.hpp" 27 #include "unittest.hpp" 28 #include "utilities/align.hpp" 29 #include "utilities/globalDefinitions.hpp" 30 31 class ArgumentsTest : public ::testing::Test { 32 public: 33 static intx parse_xss_inner_annotated(const char* str, jint expected_err, const char* file, int line_number); 34 35 // Expose the private Arguments functions. 36 37 static Arguments::ArgsRange check_memory_size(julong size, julong min_size, julong max_size) { 38 return Arguments::check_memory_size(size, min_size, max_size); 39 } 40 41 static jint parse_xss(const JavaVMOption* option, const char* tail, intx* out_ThreadStackSize) { 42 return Arguments::parse_xss(option, tail, out_ThreadStackSize); 43 } 44 }; 45 46 TEST_F(ArgumentsTest, atojulong) { 47 char ullong_max[32]; | 5 * This code is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License version 2 only, as 7 * published by the Free Software Foundation. 8 * 9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 24 #include "precompiled.hpp" 25 #include "jvm.h" 26 #include "unittest.hpp" 27 #include "runtime/arguments.hpp" 28 #include "utilities/align.hpp" 29 #include "utilities/globalDefinitions.hpp" 30 31 class ArgumentsTest : public ::testing::Test { 32 public: 33 static intx parse_xss_inner_annotated(const char* str, jint expected_err, const char* file, int line_number); 34 35 // Expose the private Arguments functions. 36 37 static Arguments::ArgsRange check_memory_size(julong size, julong min_size, julong max_size) { 38 return Arguments::check_memory_size(size, min_size, max_size); 39 } 40 41 static jint parse_xss(const JavaVMOption* option, const char* tail, intx* out_ThreadStackSize) { 42 return Arguments::parse_xss(option, tail, out_ThreadStackSize); 43 } 44 }; 45 46 TEST_F(ArgumentsTest, atojulong) { 47 char ullong_max[32]; |