亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? gtest-internal.h

?? Search s framework 老外寫的
?? H
?? 第 1 頁 / 共 3 頁
字號:
//   actual_expression:   "bar"//   expected_value:      "5"//   actual_value:        "6"//// The ignoring_case parameter is true iff the assertion is a// *_STRCASEEQ*.  When it's true, the string " (ignoring case)" will// be inserted into the message.AssertionResult EqFailure(const char* expected_expression,                          const char* actual_expression,                          const String& expected_value,                          const String& actual_value,                          bool ignoring_case);// This template class represents an IEEE floating-point number// (either single-precision or double-precision, depending on the// template parameters).//// The purpose of this class is to do more sophisticated number// comparison.  (Due to round-off error, etc, it's very unlikely that// two floating-points will be equal exactly.  Hence a naive// comparison by the == operation often doesn't work.)//// Format of IEEE floating-point:////   The most-significant bit being the leftmost, an IEEE//   floating-point looks like////     sign_bit exponent_bits fraction_bits////   Here, sign_bit is a single bit that designates the sign of the//   number.////   For float, there are 8 exponent bits and 23 fraction bits.////   For double, there are 11 exponent bits and 52 fraction bits.////   More details can be found at//   http://en.wikipedia.org/wiki/IEEE_floating-point_standard.//// Template parameter:////   RawType: the raw floating-point type (either float or double)template <typename RawType>class FloatingPoint { public:  // Defines the unsigned integer type that has the same size as the  // floating point number.  typedef typename TypeWithSize<sizeof(RawType)>::UInt Bits;  // Constants.  // # of bits in a number.  static const size_t kBitCount = 8*sizeof(RawType);  // # of fraction bits in a number.  static const size_t kFractionBitCount =    std::numeric_limits<RawType>::digits - 1;  // # of exponent bits in a number.  static const size_t kExponentBitCount = kBitCount - 1 - kFractionBitCount;  // The mask for the sign bit.  static const Bits kSignBitMask = static_cast<Bits>(1) << (kBitCount - 1);  // The mask for the fraction bits.  static const Bits kFractionBitMask =    ~static_cast<Bits>(0) >> (kExponentBitCount + 1);  // The mask for the exponent bits.  static const Bits kExponentBitMask = ~(kSignBitMask | kFractionBitMask);  // How many ULP's (Units in the Last Place) we want to tolerate when  // comparing two numbers.  The larger the value, the more error we  // allow.  A 0 value means that two numbers must be exactly the same  // to be considered equal.  //  // The maximum error of a single floating-point operation is 0.5  // units in the last place.  On Intel CPU's, all floating-point  // calculations are done with 80-bit precision, while double has 64  // bits.  Therefore, 4 should be enough for ordinary use.  //  // See the following article for more details on ULP:  // http://www.cygnus-software.com/papers/comparingfloats/comparingfloats.htm.  static const size_t kMaxUlps = 4;  // Constructs a FloatingPoint from a raw floating-point number.  //  // On an Intel CPU, passing a non-normalized NAN (Not a Number)  // around may change its bits, although the new value is guaranteed  // to be also a NAN.  Therefore, don't expect this constructor to  // preserve the bits in x when x is a NAN.  explicit FloatingPoint(const RawType& x) : value_(x) {}  // Static methods  // Reinterprets a bit pattern as a floating-point number.  //  // This function is needed to test the AlmostEquals() method.  static RawType ReinterpretBits(const Bits bits) {    FloatingPoint fp(0);    fp.bits_ = bits;    return fp.value_;  }  // Returns the floating-point number that represent positive infinity.  static RawType Infinity() {    return ReinterpretBits(kExponentBitMask);  }  // Non-static methods  // Returns the bits that represents this number.  const Bits &bits() const { return bits_; }  // Returns the exponent bits of this number.  Bits exponent_bits() const { return kExponentBitMask & bits_; }  // Returns the fraction bits of this number.  Bits fraction_bits() const { return kFractionBitMask & bits_; }  // Returns the sign bit of this number.  Bits sign_bit() const { return kSignBitMask & bits_; }  // Returns true iff this is NAN (not a number).  bool is_nan() const {    // It's a NAN if the exponent bits are all ones and the fraction    // bits are not entirely zeros.    return (exponent_bits() == kExponentBitMask) && (fraction_bits() != 0);  }  // Returns true iff this number is at most kMaxUlps ULP's away from  // rhs.  In particular, this function:  //  //   - returns false if either number is (or both are) NAN.  //   - treats really large numbers as almost equal to infinity.  //   - thinks +0.0 and -0.0 are 0 DLP's apart.  bool AlmostEquals(const FloatingPoint& rhs) const {    // The IEEE standard says that any comparison operation involving    // a NAN must return false.    if (is_nan() || rhs.is_nan()) return false;    return DistanceBetweenSignAndMagnitudeNumbers(bits_, rhs.bits_) <= kMaxUlps;  } private:  // Converts an integer from the sign-and-magnitude representation to  // the biased representation.  More precisely, let N be 2 to the  // power of (kBitCount - 1), an integer x is represented by the  // unsigned number x + N.  //  // For instance,  //  //   -N + 1 (the most negative number representable using  //          sign-and-magnitude) is represented by 1;  //   0      is represented by N; and  //   N - 1  (the biggest number representable using  //          sign-and-magnitude) is represented by 2N - 1.  //  // Read http://en.wikipedia.org/wiki/Signed_number_representations  // for more details on signed number representations.  static Bits SignAndMagnitudeToBiased(const Bits &sam) {    if (kSignBitMask & sam) {      // sam represents a negative number.      return ~sam + 1;    } else {      // sam represents a positive number.      return kSignBitMask | sam;    }  }  // Given two numbers in the sign-and-magnitude representation,  // returns the distance between them as an unsigned number.  static Bits DistanceBetweenSignAndMagnitudeNumbers(const Bits &sam1,                                                     const Bits &sam2) {    const Bits biased1 = SignAndMagnitudeToBiased(sam1);    const Bits biased2 = SignAndMagnitudeToBiased(sam2);    return (biased1 >= biased2) ? (biased1 - biased2) : (biased2 - biased1);  }  union {    RawType value_;  // The raw floating-point number.    Bits bits_;      // The bits that represent the number.  };};// Typedefs the instances of the FloatingPoint template class that we// care to use.typedef FloatingPoint<float> Float;typedef FloatingPoint<double> Double;// In order to catch the mistake of putting tests that use different// test fixture classes in the same test case, we need to assign// unique IDs to fixture classes and compare them.  The TypeId type is// used to hold such IDs.  The user should treat TypeId as an opaque// type: the only operation allowed on TypeId values is to compare// them for equality using the == operator.typedef const void* TypeId;template <typename T>class TypeIdHelper { public:  // dummy_ must not have a const type.  Otherwise an overly eager  // compiler (e.g. MSVC 7.1 & 8.0) may try to merge  // TypeIdHelper<T>::dummy_ for different Ts as an "optimization".  static bool dummy_;};template <typename T>bool TypeIdHelper<T>::dummy_ = false;// GetTypeId<T>() returns the ID of type T.  Different values will be// returned for different types.  Calling the function twice with the// same type argument is guaranteed to return the same ID.template <typename T>TypeId GetTypeId() {  // The compiler is required to allocate a different  // TypeIdHelper<T>::dummy_ variable for each T used to instantiate  // the template.  Therefore, the address of dummy_ is guaranteed to  // be unique.  return &(TypeIdHelper<T>::dummy_);}// Returns the type ID of ::testing::Test.  Always call this instead// of GetTypeId< ::testing::Test>() to get the type ID of// ::testing::Test, as the latter may give the wrong result due to a// suspected linker bug when compiling Google Test as a Mac OS X// framework.TypeId GetTestTypeId();// Defines the abstract factory interface that creates instances// of a Test object.class TestFactoryBase { public:  virtual ~TestFactoryBase() {}  // Creates a test instance to run. The instance is both created and destroyed  // within TestInfoImpl::Run()  virtual Test* CreateTest() = 0; protected:  TestFactoryBase() {} private:  GTEST_DISALLOW_COPY_AND_ASSIGN_(TestFactoryBase);};// This class provides implementation of TeastFactoryBase interface.// It is used in TEST and TEST_F macros.template <class TestClass>class TestFactoryImpl : public TestFactoryBase { public:  virtual Test* CreateTest() { return new TestClass; }};#ifdef GTEST_OS_WINDOWS// Predicate-formatters for implementing the HRESULT checking macros// {ASSERT|EXPECT}_HRESULT_{SUCCEEDED|FAILED}// We pass a long instead of HRESULT to avoid causing an// include dependency for the HRESULT type.AssertionResult IsHRESULTSuccess(const char* expr, long hr);  // NOLINTAssertionResult IsHRESULTFailure(const char* expr, long hr);  // NOLINT#endif  // GTEST_OS_WINDOWS// Formats a source file path and a line number as they would appear// in a compiler error message.inline String FormatFileLocation(const char* file, int line) {  const char* const file_name = file == NULL ? "unknown file" : file;  if (line < 0) {    return String::Format("%s:", file_name);  }#ifdef _MSC_VER  return String::Format("%s(%d):", file_name, line);#else  return String::Format("%s:%d:", file_name, line);#endif  // _MSC_VER}// Types of SetUpTestCase() and TearDownTestCase() functions.typedef void (*SetUpTestCaseFunc)();typedef void (*TearDownTestCaseFunc)();// Creates a new TestInfo object and registers it with Google Test;// returns the created object.//// Arguments:////   test_case_name:   name of the test case//   name:             name of the test//   test_case_comment: a comment on the test case that will be included in//                      the test output

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一区在线播放视频| 石原莉奈一区二区三区在线观看| 91精品办公室少妇高潮对白| 久久国产夜色精品鲁鲁99| 亚洲欧美一区二区三区国产精品| 精品少妇一区二区三区| 在线观看欧美精品| 波多野结衣精品在线| 久久69国产一区二区蜜臀| 亚洲国产日日夜夜| 国产精品夫妻自拍| 久久久久久电影| 欧美一二三区在线观看| 色噜噜狠狠成人网p站| 国产成人亚洲综合a∨猫咪| 奇米一区二区三区av| 一区二区三区在线影院| 国产精品成人在线观看| 精品国产乱码91久久久久久网站| 欧美色倩网站大全免费| 91视频在线观看| 成人av一区二区三区| 国产一区二区毛片| 国产在线不卡一区| 精品一区二区久久| 久久激五月天综合精品| 日本中文在线一区| 视频一区欧美精品| 日韩精品福利网| 婷婷久久综合九色综合伊人色| 亚洲午夜电影在线| 亚洲h精品动漫在线观看| 亚洲一二三四久久| 一区二区三区在线观看欧美| 亚洲免费观看高清完整版在线| 国产精品你懂的在线欣赏| 日本一区二区三区四区| 亚洲国产精品精华液2区45| 久久精品人人做人人综合| 久久在线免费观看| 国产午夜精品在线观看| 国产女主播在线一区二区| 国产农村妇女精品| 国产精品久久看| 曰韩精品一区二区| 一区二区三区成人| 同产精品九九九| 免费精品视频最新在线| 久久99久国产精品黄毛片色诱| 加勒比av一区二区| 高清国产午夜精品久久久久久| heyzo一本久久综合| 日本道在线观看一区二区| 欧美视频第二页| 日韩一区二区三区视频在线| 日韩免费在线观看| 国产人伦精品一区二区| 国产精品白丝在线| 亚洲一区二区中文在线| 麻豆一区二区99久久久久| 国产一区在线不卡| 99久久精品国产精品久久| 色成人在线视频| 欧美精品aⅴ在线视频| 精品成人一区二区三区四区| 国产精品欧美极品| 亚洲第一综合色| 老司机精品视频线观看86| 国产馆精品极品| 91成人免费在线| www久久精品| 亚洲蜜臀av乱码久久精品| 日本特黄久久久高潮| 国产精品一区二区无线| 色婷婷久久久亚洲一区二区三区| 欧美剧情片在线观看| 久久久99精品久久| 亚洲福中文字幕伊人影院| 国产精品一色哟哟哟| 在线观看日韩精品| 精品国产网站在线观看| 亚洲日本韩国一区| 另类中文字幕网| 色8久久精品久久久久久蜜| 日韩三级精品电影久久久 | 欧美一三区三区四区免费在线看| 精品久久久久久综合日本欧美 | 中文字幕五月欧美| 日韩一区欧美二区| 不卡av在线网| 精品国产伦一区二区三区观看方式 | 日韩综合小视频| 国产91综合一区在线观看| 欧美日韩一级黄| 国产精品素人一区二区| 奇米在线7777在线精品| 99视频有精品| 久久综合久久综合久久| 亚洲18色成人| 91原创在线视频| 久久影音资源网| 日本aⅴ精品一区二区三区 | 日韩二区三区四区| 色一情一伦一子一伦一区| 久久影院电视剧免费观看| 亚洲h动漫在线| 日本精品视频一区二区| 国产精品污污网站在线观看| 韩国av一区二区| 欧美久久久久久蜜桃| 亚洲精品中文字幕乱码三区| 成人妖精视频yjsp地址| 2017欧美狠狠色| 麻豆成人av在线| 67194成人在线观看| 一区二区三区欧美亚洲| 不卡免费追剧大全电视剧网站| 久久久综合九色合综国产精品| 美洲天堂一区二卡三卡四卡视频| 欧美日韩mp4| 午夜精品久久久久久久久| 在线亚洲人成电影网站色www| 国产精品国产三级国产三级人妇 | 91精品国产综合久久福利 | 成人自拍视频在线观看| 精品国产电影一区二区| 精品一区二区三区视频在线观看 | 亚洲精品国久久99热| 91一区二区在线观看| 中文字幕日本不卡| 99免费精品视频| 中文字幕视频一区| 91免费视频网址| 亚洲男人的天堂在线观看| 色综合久久久久久久| 亚洲一二三四在线观看| 欧美日韩一区高清| 日本成人在线电影网| 日韩视频免费观看高清完整版| 日韩国产精品久久久| 欧美videos中文字幕| 国产麻豆视频一区二区| 国产精品视频线看| 波多野结衣中文一区| 亚洲免费色视频| 欧美日韩一二区| 久久精品久久精品| 国产亚洲欧美中文| 99精品欧美一区| 亚洲午夜久久久久| 精品国免费一区二区三区| 国产91综合网| 亚洲一区二区三区四区的| 在线不卡欧美精品一区二区三区| 免费在线看成人av| 国产无遮挡一区二区三区毛片日本| 成人小视频免费观看| 亚洲国产视频在线| 2欧美一区二区三区在线观看视频| 成人在线视频首页| 亚洲综合视频网| 精品久久久久久无| 暴力调教一区二区三区| 亚洲一区二区三区四区五区中文| 日韩视频在线永久播放| 床上的激情91.| 亚洲香肠在线观看| 日韩欧美视频一区| 成人一级黄色片| 日韩有码一区二区三区| 欧美高清在线精品一区| 欧美午夜精品久久久久久孕妇| 久久成人综合网| 亚洲人亚洲人成电影网站色| 欧美一区二区三区四区高清| 成人自拍视频在线观看| 亚洲成人1区2区| 日本一区免费视频| 7777精品伊人久久久大香线蕉最新版| 国产精品资源网| 亚洲成人av福利| 亚洲欧洲三级电影| 欧美成人欧美edvon| 91黄视频在线观看| 国产精品羞羞答答xxdd| 亚洲综合在线五月| 欧美国产成人在线| 精品免费99久久| 欧美亚男人的天堂| 成人高清免费在线播放| 日韩成人午夜电影| 亚洲精品一卡二卡| 国产女人aaa级久久久级| 日韩三级视频中文字幕| 欧日韩精品视频| 不卡的看片网站| 国模无码大尺度一区二区三区| 国产精品免费视频观看| 精品少妇一区二区三区在线视频| 91福利精品第一导航|