yep, for base_unittests, that's true. But what I want to know is how chromium uses GTest. An important problem is how it runs all the GTest projects. Take the simplest GTest project printing_unittests as an example, I know it's run via GTest's main in run_all_unittests.cc. But I don't know how it invokes the main. I checked the project properties of printing_unittests, and didn't find a link to gtestmain.lib as I always do while writing GTest tests.
2009/6/23 Adam Langley <[email protected]> > On Mon, Jun 22, 2009 at 7:55 PM, Jickae Davis<[email protected]> wrote: > > But I find something weird in the chromiun's GTest projects, they neither > > write a main nor link a gtest_main.lib. > > > > How do they start GTest? > > Well, you can always set a breakpoint at main and see where you end > up. For base_unittests, it's base/run_all_unittests.cc for example. > > > AGL > --~--~---------~--~----~------------~-------~--~----~ Chromium Developers mailing list: [email protected] View archives, change email options, or unsubscribe: http://groups.google.com/group/chromium-dev -~----------~----~----~----~------~----~------~--~---
