OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #import <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> |
6 | 6 |
7 #import "chrome/browser/ui/cocoa/window_size_autosaver.h" | 7 #import "chrome/browser/ui/cocoa/window_size_autosaver.h" |
8 | 8 |
9 #include "base/memory/scoped_nsobject.h" | 9 #include "base/memory/scoped_nsobject.h" |
| 10 #include "base/prefs/pref_service.h" |
10 #include "chrome/browser/prefs/pref_registry_syncable.h" | 11 #include "chrome/browser/prefs/pref_registry_syncable.h" |
11 #include "chrome/browser/prefs/pref_service.h" | |
12 #include "chrome/browser/prefs/scoped_user_pref_update.h" | 12 #include "chrome/browser/prefs/scoped_user_pref_update.h" |
13 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h" | 13 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
15 #include "testing/platform_test.h" | 15 #include "testing/platform_test.h" |
16 | 16 |
17 namespace { | 17 namespace { |
18 | 18 |
19 class WindowSizeAutosaverTest : public CocoaProfileTest { | 19 class WindowSizeAutosaverTest : public CocoaProfileTest { |
20 virtual void SetUp() { | 20 virtual void SetUp() { |
21 CocoaProfileTest::SetUp(); | 21 CocoaProfileTest::SetUp(); |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 int x1, y1, x2, y2; | 202 int x1, y1, x2, y2; |
203 EXPECT_FALSE(windowPref->GetInteger("x", &x1)); | 203 EXPECT_FALSE(windowPref->GetInteger("x", &x1)); |
204 EXPECT_FALSE(windowPref->GetInteger("y", &x1)); | 204 EXPECT_FALSE(windowPref->GetInteger("y", &x1)); |
205 ASSERT_FALSE(windowPref->GetInteger("left", &x1)); | 205 ASSERT_FALSE(windowPref->GetInteger("left", &x1)); |
206 ASSERT_FALSE(windowPref->GetInteger("right", &x2)); | 206 ASSERT_FALSE(windowPref->GetInteger("right", &x2)); |
207 ASSERT_FALSE(windowPref->GetInteger("top", &y1)); | 207 ASSERT_FALSE(windowPref->GetInteger("top", &y1)); |
208 ASSERT_FALSE(windowPref->GetInteger("bottom", &y2)); | 208 ASSERT_FALSE(windowPref->GetInteger("bottom", &y2)); |
209 } | 209 } |
210 | 210 |
211 } // namespace | 211 } // namespace |
OLD | NEW |