diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-10 18:54:50 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-10 18:54:50 +0000 |
commit | 4ab4b0f66a346a4e48601d51693170d9adc85d96 (patch) | |
tree | b74eb578456bf14a343b658586ec9898471872a4 /chrome/browser/site_instance_unittest.cc | |
parent | 43f55738f0922bc479ee00b5d3d3c264e080f512 (diff) | |
download | chromium_src-4ab4b0f66a346a4e48601d51693170d9adc85d96.zip chromium_src-4ab4b0f66a346a4e48601d51693170d9adc85d96.tar.gz chromium_src-4ab4b0f66a346a4e48601d51693170d9adc85d96.tar.bz2 |
Porting unit tests in chrome/
- Make following unit tests compile and pass on Linux:
browser/
command_updater_unittest.cc
metrics/metrics_log_unittest.cc
search_engines/template_url_parser_unittest.cc
search_engines/template_url_prepopulate_data_unittest.cc
- Add renderer/renderer_main_unittest.cc to list of compiled files (currently stubbed out on Linux)
- Remove DebuggerWrapper stubs and make more files from browser/debugger build on Linux.
- Sync XCode project file.
- Misc cleanups needed for GCC.
Review URL: http://codereview.chromium.org/21181
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9490 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/site_instance_unittest.cc')
-rw-r--r-- | chrome/browser/site_instance_unittest.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/chrome/browser/site_instance_unittest.cc b/chrome/browser/site_instance_unittest.cc index d1691fa..71fa4d9 100644 --- a/chrome/browser/site_instance_unittest.cc +++ b/chrome/browser/site_instance_unittest.cc @@ -21,8 +21,10 @@ class TestBrowsingInstance : public BrowsingInstance { public: TestBrowsingInstance(Profile* profile, int* deleteCounter) : BrowsingInstance(profile), - deleteCounter_(deleteCounter), - use_process_per_site(false) {} + use_process_per_site(false), + deleteCounter_(deleteCounter) { + } + ~TestBrowsingInstance() { (*deleteCounter_)++; } @@ -86,7 +88,7 @@ TEST_F(SiteInstanceTest, SiteInstanceDestructor) { // Add a second reference NavigationEntry* e2 = new NavigationEntry(TAB_CONTENTS_WEB, instance, 0, url, - GURL(), std::wstring(), + GURL(), std::wstring(), PageTransition::LINK); // Now delete both entries and be sure the SiteInstance goes away. |