webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Namespaces | Functions
safe_compare_unittest.cc File Reference
#include <limits>
#include "webrtc/base/safe_compare.h"
#include "webrtc/test/gtest.h"

Namespaces

 rtc
 

Functions

bool rtc::TestLessThanRef (int a, int b)
 
bool rtc::TestLessThanRef (unsigned a, unsigned b)
 
bool rtc::TestLessThanSafe (int a, int b)
 
bool rtc::TestLessThanSafe (unsigned a, unsigned b)
 
bool rtc::TestLessThanSafe (unsigned a, int b)
 
bool rtc::TestLessThanSafe (int a, unsigned b)
 
bool rtc::TestLessThan17Ref (int a)
 
bool rtc::TestLessThan17Ref (unsigned a)
 
bool rtc::TestLessThan17uRef (int a)
 
bool rtc::TestLessThan17uRef (unsigned a)
 
bool rtc::TestLessThan17Safe (int a)
 
bool rtc::TestLessThan17Safe (unsigned a)
 
bool rtc::TestLessThan17uSafe (int a)
 
bool rtc::TestLessThan17uSafe (unsigned a)
 
bool rtc::TestLessThanMax (intmax_t a, uintmax_t b)
 
bool rtc::TestLessThanMax (uintmax_t a, intmax_t b)
 
bool rtc::TestLessThanMax17u (intmax_t a)
 
bool rtc::TestLessThanMax17 (uintmax_t a)
 
bool rtc::TestLessThanConst1 ()
 
bool rtc::TestLessThanConst2 ()
 
bool rtc::TestLessThanConst3 ()
 
bool rtc::TestLessThanConst4 (unsigned a)
 
bool rtc::TestLessThanConst5 (unsigned a)
 
bool rtc::TestLessThanConst6 (unsigned a)
 
 rtc::TEST (SafeCmpTest, Eq)
 
 rtc::TEST (SafeCmpTest, Ne)
 
 rtc::TEST (SafeCmpTest, Lt)
 
 rtc::TEST (SafeCmpTest, Le)
 
 rtc::TEST (SafeCmpTest, Gt)
 
 rtc::TEST (SafeCmpTest, Ge)
 
 rtc::TEST (SafeCmpTest, Enum)