Из-за периодической блокировки нашего сайта РКН сервисами, просим воспользоваться резервным адресом:
Загрузить через dTub.ru Загрузить через ycliper.com Загрузить через ClipSaver.ruУ нас вы можете посмотреть бесплатно Google Test and Mock Platform - Part 3: Mocking Classes and Functions with GMock или скачать в максимальном доступном качестве, которое было загружено на ютуб. Для скачивания выберите вариант из формы ниже:
Роботам не доступно скачивание файлов. Если вы считаете что это ошибочное сообщение - попробуйте зайти на сайт через браузер google chrome или mozilla firefox. Если сообщение не исчезает - напишите о проблеме в обратную связь. Спасибо.
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса savevideohd.ru
In this video, we cover mocking classes and functions with GMock. This is a complete tutorial on GMock and is the third video in the video series of a complete tutorial on Google Test (GTest) and Google Mock (GMock) for writing unit tests in C++. ----------------------------------------------------- Link to Part 1: • Google Test and Mock Platform, Complete Tu... Link to Part 2: • Google Test and Mock Platform - Part 2: GM... Link to the repo used in this video: https://github.com/ourarash/cpp-template. A video describing how to use this repo: • C++ starter repo for Bazel & Visual Studio... ----------------------------------------------------- Chapters: Introduction 00:00 Mocking classes and functions: 02:34 Test Doubles 4:33 Example Test with Doubles 6:46 Spy vs. Mock 10:56 GMock Preview 12:36 Simple GMock Example 13:55 MOCK_METHOD macro 17:09 Specifying what the mock should do 18:47 Leave the mock behavior unspecified 20:37 What is ON_CALL macro 21:06 What is EXPECT_CALL macro 27:20 Cardinality in EXPECT_CALL 32:11 Uninteresting calls 37:19 NiceMock and StrictMock 39:13 Unexpected vs uninteresting calls 40:13 Sequencing in EXPECT_CALL 41:35 GMock Actions 47:04 GMock Actions: Return a value 48:33 GMock Actions: Side effects 49:56 GMock Actions: Invoke a function 52:48 Custom GMock Actions: 57:01 Sticky rules in GMock 58:11 Checkpoints 01:03:25 Mocking Private Methods 01:06:13 Mocking Overloaded Methods 01:06:30 Mocking Template Classes 01:06:47 Mocking Non-Virtual Classes 01:07:16 Mocking Free Functions 01:09:55 Delegating to Fake and Real in GMock 01:10:54 Criticisms of GMock 01:12:42 Let me know if you have any questions in the comments! ----------------------------------------------------- See my other videos on: How to use Google Benchmark for C++ Programs: • How to use Google Benchmark for C++ programs Bazel and unit tests with GTest: • Bazel & Google Test in Visual Studio Code Debugging in Visual Studio Code for C++: • Debugging C++ in Visual Studio Code using ... Visual Studio Code, Top Features: • Visual Studio Code Top Features 2020 ----------------------------------------------------- Keep in touch with me: / ourarash / ourarash I'm the founder of BitcoinCrazyness app, the Most Advanced Cryptocurrency mobile APP for alerts, Check it out: http://www.bitcoincrazyness.com/