ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

Google Test and Mock Platform - Part 3: Mocking Classes and Functions with GMock

google test

c++ gtest

unit testing

GTest

GMock

Google test

google test c++

google test engineer interview questions

Typed tests

C++ Unit testing

GMock matchers

Matchers

googlemock

mocking

gmock tutorial

gtest tutorial

googletest tutorial

googlemock tutorial

Автор: arisaif

Загружено: 2022-03-11

Просмотров: 38329

Описание: 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/

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
Google Test and Mock Platform - Part 3: Mocking Classes and Functions with GMock

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

Google Test and Mock Platform, Complete Tutorial. Part 1: Google Test

Google Test and Mock Platform, Complete Tutorial. Part 1: Google Test

Unit Tests and Test Doubles like Mocks, Stubs & Fakes

Unit Tests and Test Doubles like Mocks, Stubs & Fakes

How to use Google Benchmark for C++ programs

How to use Google Benchmark for C++ programs

SOLID ПРИНЦИПЫ простым языком (много примеров)

SOLID ПРИНЦИПЫ простым языком (много примеров)

C++ starter repo for Bazel & Visual Studio Code with GTest, Glog and Abseil

C++ starter repo for Bazel & Visual Studio Code with GTest, Glog and Abseil

Лучший Гайд по Kafka для Начинающих За 1 Час

Лучший Гайд по Kafka для Начинающих За 1 Час

Back to Basics: Unit Testing in C++ - Dave Steffen - CppCon 2024

Back to Basics: Unit Testing in C++ - Dave Steffen - CppCon 2024

Bazel Tutorial for C++ in 30 Minutes

Bazel Tutorial for C++ in 30 Minutes

Google Test and Mock Platform - Part 2: GMock Matchers

Google Test and Mock Platform - Part 2: GMock Matchers

Блокировка денег и внедрение цифрового рубля / Обострение на Ближнем Востоке || Дмитрий Потапенко*

Блокировка денег и внедрение цифрового рубля / Обострение на Ближнем Востоке || Дмитрий Потапенко*

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]