Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(162)

Side by Side Diff: chrome/browser/cocoa/window_size_autosaver_unittest.mm

Issue 3203008: Move prefs-related files under chrome/browser/ into a prefs/ subdir. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/cocoa/window_size_autosaver.h" 7 #import "chrome/browser/cocoa/window_size_autosaver.h"
8 8
9 #include "base/scoped_nsobject.h" 9 #include "base/scoped_nsobject.h"
10 #include "chrome/browser/cocoa/browser_test_helper.h" 10 #include "chrome/browser/cocoa/browser_test_helper.h"
11 #import "chrome/browser/cocoa/cocoa_test_helper.h" 11 #import "chrome/browser/cocoa/cocoa_test_helper.h"
12 #include "chrome/browser/pref_service.h" 12 #include "chrome/browser/prefs/pref_service.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 #include "testing/platform_test.h" 14 #include "testing/platform_test.h"
15 15
16 namespace { 16 namespace {
17 17
18 class WindowSizeAutosaverTest : public CocoaTest { 18 class WindowSizeAutosaverTest : public CocoaTest {
19 virtual void SetUp() { 19 virtual void SetUp() {
20 CocoaTest::SetUp(); 20 CocoaTest::SetUp();
21 path_ = "WindowSizeAutosaverTest"; 21 path_ = "WindowSizeAutosaverTest";
22 window_ = 22 window_ =
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 int x1, y1, x2, y2; 192 int x1, y1, x2, y2;
193 EXPECT_FALSE(windowPref->GetInteger("x", &x1)); 193 EXPECT_FALSE(windowPref->GetInteger("x", &x1));
194 EXPECT_FALSE(windowPref->GetInteger("y", &x1)); 194 EXPECT_FALSE(windowPref->GetInteger("y", &x1));
195 ASSERT_FALSE(windowPref->GetInteger("left", &x1)); 195 ASSERT_FALSE(windowPref->GetInteger("left", &x1));
196 ASSERT_FALSE(windowPref->GetInteger("right", &x2)); 196 ASSERT_FALSE(windowPref->GetInteger("right", &x2));
197 ASSERT_FALSE(windowPref->GetInteger("top", &y1)); 197 ASSERT_FALSE(windowPref->GetInteger("top", &y1));
198 ASSERT_FALSE(windowPref->GetInteger("bottom", &y2)); 198 ASSERT_FALSE(windowPref->GetInteger("bottom", &y2));
199 } 199 }
200 200
201 } // namespace 201 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698