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

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

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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) 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/mac/scoped_nsobject.h" 9 #include "base/mac/scoped_nsobject.h"
10 #include "base/prefs/pref_service.h"
11 #include "base/prefs/scoped_user_pref_update.h"
12 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h" 10 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h"
13 #include "chrome/test/base/testing_profile.h" 11 #include "chrome/test/base/testing_profile.h"
14 #include "components/pref_registry/pref_registry_syncable.h" 12 #include "components/pref_registry/pref_registry_syncable.h"
13 #include "components/prefs/pref_service.h"
14 #include "components/prefs/scoped_user_pref_update.h"
15 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
16 #include "testing/platform_test.h" 16 #include "testing/platform_test.h"
17 17
18 namespace { 18 namespace {
19 19
20 class WindowSizeAutosaverTest : public CocoaProfileTest { 20 class WindowSizeAutosaverTest : public CocoaProfileTest {
21 void SetUp() override { 21 void SetUp() override {
22 CocoaProfileTest::SetUp(); 22 CocoaProfileTest::SetUp();
23 path_ = "WindowSizeAutosaverTest"; 23 path_ = "WindowSizeAutosaverTest";
24 window_ = 24 window_ =
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 int x1, y1, x2, y2; 201 int x1, y1, x2, y2;
202 EXPECT_FALSE(windowPref->GetInteger("x", &x1)); 202 EXPECT_FALSE(windowPref->GetInteger("x", &x1));
203 EXPECT_FALSE(windowPref->GetInteger("y", &x1)); 203 EXPECT_FALSE(windowPref->GetInteger("y", &x1));
204 ASSERT_FALSE(windowPref->GetInteger("left", &x1)); 204 ASSERT_FALSE(windowPref->GetInteger("left", &x1));
205 ASSERT_FALSE(windowPref->GetInteger("right", &x2)); 205 ASSERT_FALSE(windowPref->GetInteger("right", &x2));
206 ASSERT_FALSE(windowPref->GetInteger("top", &y1)); 206 ASSERT_FALSE(windowPref->GetInteger("top", &y1));
207 ASSERT_FALSE(windowPref->GetInteger("bottom", &y2)); 207 ASSERT_FALSE(windowPref->GetInteger("bottom", &y2));
208 } 208 }
209 209
210 } // namespace 210 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/window_size_autosaver.mm ('k') | chrome/browser/ui/content_settings/content_setting_bubble_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698