allenhoum / google-glog

Automatically exported from code.google.com/p/google-glog
Other
0 stars 0 forks source link

Make ScopedMockLog available outside of glog #88

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
The ScopedMockLog class is used in unit tests internal to the glog package. It 
would be useful to allow application unit tests to test their logging, not just 
within glog.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
0.3.1 on Linux 2.6.32

Please provide any additional information below.

I've attached a patch which moves src/mock-log.h to src/glog/mock-log.h.in, 
modified as needed to set its namespaces at configure time instead of compile 
time. I've also adjusted Makefile.in and the configure script.

The patch was generated relative to a 0.3.1 release in my directory. I edited 
the diff to remove part of the path names, which included project information I 
don't particularly want to be indexed in search engines. patch was still able 
to figure out how to apply it, so I'll hope for the best.

Original issue reported on code.google.com by denton.g...@gmail.com on 1 May 2011 at 12:51

Attachments: