From 1e9b90157eb384c807a5a34f2662fabdf716b4df Mon Sep 17 00:00:00 2001 From: "thakis@chromium.org" Date: Wed, 23 Jun 2010 21:11:52 +0000 Subject: Add storage for static member vars. This way, the code is standards-compliant _and_ makes clang happy. Review URL: http://codereview.chromium.org/2870023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50640 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/cocoa/bookmark_bubble_controller_unittest.mm | 3 +++ chrome/browser/cocoa/sad_tab_controller_unittest.mm | 3 +++ chrome/common/child_process_logging_mac_unittest.mm | 3 +++ 3 files changed, 9 insertions(+) (limited to 'chrome') diff --git a/chrome/browser/cocoa/bookmark_bubble_controller_unittest.mm b/chrome/browser/cocoa/bookmark_bubble_controller_unittest.mm index 6beecde..e392ed4 100644 --- a/chrome/browser/cocoa/bookmark_bubble_controller_unittest.mm +++ b/chrome/browser/cocoa/bookmark_bubble_controller_unittest.mm @@ -60,6 +60,9 @@ class BookmarkBubbleControllerTest : public CocoaTest { } }; +// static +int BookmarkBubbleControllerTest::edits_; + // Confirm basics about the bubble window (e.g. that it is inside the // parent window) TEST_F(BookmarkBubbleControllerTest, TestBubbleWindow) { diff --git a/chrome/browser/cocoa/sad_tab_controller_unittest.mm b/chrome/browser/cocoa/sad_tab_controller_unittest.mm index b3c959f..bce97a6 100644 --- a/chrome/browser/cocoa/sad_tab_controller_unittest.mm +++ b/chrome/browser/cocoa/sad_tab_controller_unittest.mm @@ -68,6 +68,9 @@ class SadTabControllerTest : public RenderViewHostTestHarness { CocoaTestHelperWindow* test_window_; }; +// static +bool SadTabControllerTest::link_clicked_; + TEST_F(SadTabControllerTest, WithTabContents) { scoped_nsobject controller(CreateController()); EXPECT_TRUE(controller); diff --git a/chrome/common/child_process_logging_mac_unittest.mm b/chrome/common/child_process_logging_mac_unittest.mm index 276f19b..a751287 100644 --- a/chrome/common/child_process_logging_mac_unittest.mm +++ b/chrome/common/child_process_logging_mac_unittest.mm @@ -78,6 +78,9 @@ class MockBreakpadKeyValueStore { DISALLOW_COPY_AND_ASSIGN(MockBreakpadKeyValueStore); }; +// static +NSMutableDictionary* MockBreakpadKeyValueStore::dict; + } // namespace // Call through to SetActiveURLImpl using the functions from -- cgit v1.1