aboutsummaryrefslogtreecommitdiff
path: root/googlemock
AgeCommit message (Collapse)Author
2017-06-21Merge remote-tracking branch 'aosp/upstream-master' into mymergendk-r16-beta2ndk-r16-beta1ndk-r16android-o-preview-4android-o-iot-preview-5o-iot-preview-5ndk-release-r16ndk-r16-releaseElliott Hughes
Change-Id: Iac43bc8e6eeb565e731267dd96c3bba374cbd81a
2017-05-15Use std::string and ::string explicitly in gtest and gmock code.Nico Weber
This merges a Google-internal change (117235625). Original CL description: This CL was created manually in about an hour with sed, a Python script to find all the places unqualified 'string' was mentioned, and some help from Emacs to add the "std::" qualifications, plus a few manual tweaks.
2017-04-10Mark as vendor_availableandroid-wear-o-preview-4android-wear-o-preview-3android-o-preview-3android-o-preview-2Dan Willemsen
By setting vendor_available, the following may become true: * a prebuilt library from this release may be used at runtime by in a later releasse (by vendor code compiled against this release). so this library shouldn't depend on runtime state that may change in the future. * this library may be loaded twice into a single process (potentially an old version and a newer version). The symbols will be isolated using linker namespaces, but this may break assumptions about 1 library in 1 process (your singletons will run twice). Background: This means that these modules may be built and installed twice -- once for the system partition and once for the vendor partition. The system version will build just like today, and will be used by the framework components on /system. The vendor version will build against a reduced set of exports and libraries -- similar to, but separate from, the NDK. This means that all your dependencies must also mark vendor_available. At runtime, /system binaries will load libraries from /system/lib*, while /vendor binaries will load libraries from /vendor/lib*. There are some exceptions in both directions -- bionic(libc,etc) and liblog are always loaded from /system. And SP-HALs (OpenGL, etc) may load /vendor code into /system processes, but the dependencies of those libraries will load from /vendor until it reaches a library that's always on /system. In the SP-HAL case, if both framework and vendor libraries depend on a library of the same name, both versions will be loaded, but they will be isolated from each other. It's possible to compile differently -- reducing your source files, exporting different include directories, etc. For details see: https://android-review.googlesource.com/368372 None of this is enabled unless the device opts into the system/vendor split with BOARD_VNDK_VERSION := current. Bug: 36426473 Bug: 36079834 Test: Android-aosp_arm.mk is the same before/after Test: build.ninja is the same before/after Test: build-aosp_arm.ninja is the same before/after Test: attempt to compile with BOARD_VNDK_VERSION := current Change-Id: I9722ac3b803d9dab8c01a714d72904fa4dd40196
2017-02-25Remove /tree/ from Readme.md links.Billy Donahue
Issue #1028
2017-01-23Merge pull request #1 from google/masterSam Roth
Syncing my branch
2016-12-18Merge pull request #658 from audiofanatic/ExternalProject_at_configure_timeBilly Donahue
Added docs for ExternalProject download during CMake step
2016-12-172.6.4 is the minimum CMake version, so enforce it (#656)Craig Scott
2016-12-18Added CMake configure-time download instructions to docsCraig Scott
Adds instructions for how to add gtest and gmock to another CMake project directly. Downloading of the googletest sources happens as configure time, allowing it to be added to the main build directly via the add_subdirectory() command. This ensures googletest is built with the same compiler settings, etc. and will typically result in a more robust and more convenient build arrangement.
2016-09-13Cookbok: fix broken relative linkMarco Molteni
2016-09-12Fixed broken linksSamuel Roth
2016-09-12blob vs treeSamuel Roth
2016-09-12Fixing relative linksSamuel Roth
2016-09-12Fixing KnownIssues and FrequentlyAskedQuestions linksSamuel Roth
2016-09-12Broken relative links fixedSamuel Roth
2016-09-12Fixing ForDummies linkSamuel Roth
2016-09-12One worksSamuel Roth
2016-09-12Relative linksSamuel Roth
2016-09-12Fixing relative linksSamuel Roth
2016-08-12Add build files.Dan Albert
The gtest Android.mk is a little unusal. We use this source exactly in both the platform and the NDK, but the module definitions needs to be slightly different for each. We don't ship gmock in the NDK (yet), so it is spared this mess. Test: make checkbuild && adb sync && ./run_tests.py Bug: http://b/16574165 Change-Id: I4f4224ab05b59acb3118ce1629ad998d0c5fe1b9
2016-07-14Reformatted the Unprintable operator== code style.mazong1123
2016-07-14Fixed issue #775mazong1123
2016-05-15Added VS 2015 project support.mazong1123
2016-05-15Updated the value of GTEST_DIR to reflect the googletest dir.mazong1123
2016-05-15Changed the GTestDir marco value to reflect the new dir of googletest.mazong1123
2016-03-08Fix typo (Inovke -> Invoke)Paul Hadfield
2016-03-04Link license files to NOTICE. Add MODULE_LICENSE.ndk-r13-beta2ndk-r13-beta1ndk-r13ndk-r12bndk-r12-beta2ndk-r12-beta1android-wear-7.1.1_r1android-n-iot-preview-2nougat-mr1-wear-releasendk-r13-releasendk-r12-releasen-iot-preview-2Dan Albert
Change-Id: Icfb000c136a02522a290b7588bf570f65347c0fc
2016-02-21Fix formatting in AdvancedGuide.mdPaul Wilkinson
Put occurrences of "#include" in a code span so they are not interpreted as headers. Other documents were not broken because the #include was not at the start of the line, but put them in code spans anyway just in case the text gets refilled in the future.
2016-02-16Fix link that's returned when running tests. #714Jacob Meacham
2015-12-10Merge pull request #657 from audiofanatic/issue655-targetHeaderDepsBilly Donahue
Add include dirs to targets if CMake version supports it
2015-12-10Merge pull request #650 from jpuigcerver/masterBilly Donahue
Added missing CMake install rules for GMock
2015-12-08fixed link in googlemock documentationPaul Rosset
2015-12-06Add include dirs to targets if CMake version supports itCraig Scott
2015-12-03Added CMake install rules for GMockJoan Puigcerver
2015-11-30Merge pull request #592 from Ferenc-/masterBilly Donahue
Fix typo in googlemock/README.md
2015-11-12Name the helper AsBits()Mark Mentovai
2015-11-11Use a templated helper to wrap the castMark Mentovai
The helper needs to be templated because its argument type can’t be known. FloatingPointTest is instantiated with RawType = float and RawType = double, so Bits will be an unsigned 32-bit or 64-bit type. size_t will be either 32 or 64 bits depending on the system’s definition, typically based on pointer size.
2015-11-11Leave decltype(max_ulps_) alone and cast, not sure this is betterMark Mentovai
2015-11-11Fix warnings encountered in MSVC build of gtest/gmock testsMark Mentovai
This fixes these warnings: …\gtest\googletest\test\gtest-port_test.cc(78) : error C2220: warning treated as error - no 'object' file generated …\gtest\googletest\test\gtest-port_test.cc(78) : warning C4309: 'static_cast' : truncation of constant value …\gtest\googletest\test\gtest-port_test.cc(79) : warning C4309: 'static_cast' : truncation of constant value …\gtest\googlemock\test\gmock-matchers_test.cc(2712) : error C2220: warning treated as error - no 'object' file generated …\gtest\googlemock\test\gmock-matchers_test.cc(2706) : while compiling class template member function 'testing::gmock_matchers_test::FloatingPointTest<float>::FloatingPointTest(void)' …\gtest\googlemock\test\gmock-matchers_test.cc(2896) : see reference to function template instantiation 'testing::gmock_matchers_test::FloatingPointTest<float>::FloatingPointTest(void)' being compiled …\gtest\googlemock\test\gmock-matchers_test.cc(2896) : see reference to class template instantiation 'testing::gmock_matchers_test::FloatingPointTest<float>' being compiled …\gtest\googlemock\test\gmock-matchers_test.cc(2712) : warning C4267: 'argument' : conversion from 'size_t' to 'const unsigned int', possible loss of data …\gtest\googlemock\test\gmock-matchers_test.cc(2714) : warning C4267: 'argument' : conversion from 'size_t' to 'const unsigned int', possible loss of data …\gtest\googlemock\test\gmock-matchers_test.cc(2716) : warning C4267: 'argument' : conversion from 'size_t' to 'const unsigned int', possible loss of data …\gtest\googlemock\test\gmock-matchers_test.cc(2717) : warning C4267: 'argument' : conversion from 'size_t' to 'const unsigned int', possible loss of data …\gtest\googlemock\test\gmock-matchers_test.cc(2718) : warning C4267: 'argument' : conversion from 'size_t' to 'const unsigned int', possible loss of data …\gtest\googlemock\test\gmock-matchers_test.cc(2721) : warning C4267: 'argument' : conversion from 'size_t' to 'const unsigned int', possible loss of data …\gtest\googlemock\test\gmock-matchers_test.cc(2723) : warning C4267: 'argument' : conversion from 'size_t' to 'const unsigned int', possible loss of data
2015-11-10Merge pull request #612 from mark-chromium/gmock_rttiBilly Donahue
googlemock: Disable WhenDynamicCastToTest tests when RTTI is off
2015-10-12googlemock: Disable WhenDynamicCastToTest tests when RTTI is offMark Mentovai
https://github.com/google/googletest/issues/610
2015-10-12googlemock: Support C++11 language with pre-C++11 libraryMark Mentovai
This guards use of <type_traits> and its features with GTEST_HAS_STD_TYPE_TRAITS_, and std::function with GTEST_HAS_STD_FUNCTION_.
2015-09-23Fix broken link to FrequentlyAskedQuestionsMarco Molteni
2015-09-19Adding missing files to googlemock distribution.Martin Maly
2015-09-19Fix typo in googlemock/README.mdFerenc-
2015-09-17Fix relative links in googlemock docs.Billy Donahue
2015-09-17Fix the googlemock autotools build.Simon Newton
2015-09-08Include <memory> to use std::unique_ptr.Billy Donahue
2015-09-07Googlemock has some tuples containing lvalue refs in its unit tests.Billy Donahue
These tuples are created with make_tuple, which is given temporaries. The make_tuple is in a function argument list. A possibly overzealous static_assert in libc++'s std::tuple ctor is firing in our 'Perform(make_tuple("hi"))' calls, so we can't use its make_tuple here. Instead we will use explicitly-constructed tuples constructed from non-temporary strings. Workaround for llvm bug: https://llvm.org/bugs/show_bug.cgi?id=20855 An alternative to https://github.com/google/googletest/pull/580 .
2015-08-30mergeBilly Donahue
2015-08-30readme mergingBilly Donahue