Adding gmock

Do not post support requests, bug reports or feature requests. Discuss CEF here. Non-CEF related discussion goes in General Discussion!

Adding gmock

Postby mohitdhwn21 » Wed Jun 13, 2018 3:36 pm

Hi,

I am custom building cef and would like to know if there is a way we can add gmock to the tests folder in the binary distribution. Do we have to modify the source code i.e. adding a new function in binary_distrib.py or we can do it using a build config setting.

Thanks.
mohitdhwn21
Newbie
 
Posts: 2
Joined: Wed Jun 13, 2018 3:33 pm

Re: Adding gmock

Postby magreenblatt » Wed Jun 13, 2018 4:11 pm

It will likely require changes in make_distrib.py. You can look at how gtest support was added.
magreenblatt
Site Admin
 
Posts: 8401
Joined: Fri May 29, 2009 6:57 pm

Re: Adding gmock

Postby mohitdhwn21 » Thu Jun 14, 2018 9:49 am

Thanks. I modified make_distrib.py to make gmock appear in the tests folder; i was just curious if some build setting or flag that would have done the same thing.
mohitdhwn21
Newbie
 
Posts: 2
Joined: Wed Jun 13, 2018 3:33 pm

Re: Adding gmock

Postby magreenblatt » Thu Jun 14, 2018 11:17 am

One complication with gtest is that it requires a tool to create a single-header version (see the create_fuzed_gtest method in make_distrib.py). I'm not sure if the same is true for gmock.
magreenblatt
Site Admin
 
Posts: 8401
Joined: Fri May 29, 2009 6:57 pm


Return to CEF Discussion

Who is online

Users browsing this forum: No registered users and 2 guests