| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 | 47 |
| 48 long long testLongLong() { return m_longLong; } | 48 long long testLongLong() { return m_longLong; } |
| 49 void setTestLongLong(long long value) { m_longLong = value; } | 49 void setTestLongLong(long long value) { m_longLong = value; } |
| 50 long long testEnforceRangeLongLong() { return m_longLong; } | 50 long long testEnforceRangeLongLong() { return m_longLong; } |
| 51 void setTestEnforceRangeLongLong(long long value) { m_longLong = value; } | 51 void setTestEnforceRangeLongLong(long long value) { m_longLong = value; } |
| 52 unsigned long long testUnsignedLongLong() { return m_unsignedLongLong; } | 52 unsigned long long testUnsignedLongLong() { return m_unsignedLongLong; } |
| 53 void setTestUnsignedLongLong(unsigned long long value) { m_unsignedLongLong
= value; } | 53 void setTestUnsignedLongLong(unsigned long long value) { m_unsignedLongLong
= value; } |
| 54 unsigned long long testEnforceRangeUnsignedLongLong() { return m_unsignedLon
gLong; } | 54 unsigned long long testEnforceRangeUnsignedLongLong() { return m_unsignedLon
gLong; } |
| 55 void setTestEnforceRangeUnsignedLongLong(unsigned long long value) { m_unsig
nedLongLong = value; } | 55 void setTestEnforceRangeUnsignedLongLong(unsigned long long value) { m_unsig
nedLongLong = value; } |
| 56 | 56 |
| 57 int8_t testByte() { return m_byte; } |
| 58 void setTestByte(int8_t value) { m_byte = value; } |
| 59 int8_t testEnforceRangeByte() { return m_byte; } |
| 60 void setTestEnforceRangeByte(int8_t value) { m_byte = value; } |
| 61 |
| 62 uint8_t testOctet() { return m_octet; } |
| 63 void setTestOctet(uint8_t value) { m_octet = value; } |
| 64 uint8_t testEnforceRangeOctet() { return m_octet; } |
| 65 void setTestEnforceRangeOctet(uint8_t value) { m_octet = value; } |
| 66 |
| 57 private: | 67 private: |
| 58 TypeConversions() | 68 TypeConversions() |
| 59 { | 69 { |
| 60 } | 70 } |
| 61 | 71 |
| 62 long m_long; | 72 long m_long; |
| 63 unsigned long m_unsignedLong; | 73 unsigned long m_unsignedLong; |
| 64 long long m_longLong; | 74 long long m_longLong; |
| 65 unsigned long long m_unsignedLongLong; | 75 unsigned long long m_unsignedLongLong; |
| 76 int8_t m_byte; |
| 77 uint8_t m_octet; |
| 66 }; | 78 }; |
| 67 | 79 |
| 68 } // namespace WebCore | 80 } // namespace WebCore |
| 69 | 81 |
| 70 #endif | 82 #endif |
| OLD | NEW |