chronos38 / googlemock

Automatically exported from code.google.com/p/googlemock
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

when the interface be mocked is big, to compile the mock object become slowly #33

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
  now google mock framework implement the mock object in the corresponding
class. And when I used the mock object, I have to include the mock class in
my source code, if the interface that I mocked is big, when I compile my
source code, it is very very slowy. 
  I hope that when google mock implement the mock object, it can sperate
the declare file and implement file, that means I can comiple the mock
object to a single .obj file. I think this way can compile my source code
fastly.

Original issue reported on code.google.com by zouy...@gmail.com on 17 Feb 2009 at 11:04

GoogleCodeExporter commented 9 years ago
This is determined by GoogleMock's fundamental design and cannot be changed.  
Having
the implementation in the .h file makes it convenient to use the mock class.

How big is your interface?  What compiler are you using?  How slow was it?  Do 
you
really need to mock everything in the interface?

Original comment by zhanyong...@gmail.com on 19 Feb 2009 at 8:23

GoogleCodeExporter commented 9 years ago

Original comment by w...@google.com on 18 Oct 2010 at 6:50