| Index: chrome/browser/ui/cocoa/window_size_autosaver_unittest.mm
|
| diff --git a/chrome/browser/ui/cocoa/window_size_autosaver_unittest.mm b/chrome/browser/ui/cocoa/window_size_autosaver_unittest.mm
|
| index c3b33ed3eee9649e4af94d43ee40b3a2728c12da..e2af3ac6e52cbdc12214946b2677942aeac09055 100644
|
| --- a/chrome/browser/ui/cocoa/window_size_autosaver_unittest.mm
|
| +++ b/chrome/browser/ui/cocoa/window_size_autosaver_unittest.mm
|
| @@ -44,7 +44,9 @@ TEST_F(WindowSizeAutosaverTest, RestoresAndSavesPos) {
|
| ASSERT_TRUE(pref != NULL);
|
|
|
| // Check to make sure there is no existing pref for window placement.
|
| - ASSERT_TRUE(pref->GetDictionary(path_) == NULL);
|
| + const DictionaryValue* placement = pref->GetDictionary(path_);
|
| + ASSERT_TRUE(placement);
|
| + EXPECT_TRUE(placement->empty());
|
|
|
| // Replace the window with one that doesn't have resize controls.
|
| [window_ close];
|
| @@ -109,7 +111,9 @@ TEST_F(WindowSizeAutosaverTest, RestoresAndSavesRect) {
|
| ASSERT_TRUE(pref != NULL);
|
|
|
| // Check to make sure there is no existing pref for window placement.
|
| - ASSERT_TRUE(pref->GetDictionary(path_) == NULL);
|
| + const DictionaryValue* placement = pref->GetDictionary(path_);
|
| + ASSERT_TRUE(placement);
|
| + EXPECT_TRUE(placement->empty());
|
|
|
| // Ask the window to save its position, then check that a preference
|
| // exists. We're technically passing in a pointer to the user prefs
|
|
|