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

Side by Side Diff: chrome/browser/prefs/pref_service_browsertest.cc

Issue 823133004: Cleanup: Update the path to gfx rect headers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rect_f.h Created 5 years, 11 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include <string> 5 #include <string>
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/files/file_util.h" 8 #include "base/files/file_util.h"
9 #include "base/files/scoped_temp_dir.h" 9 #include "base/files/scoped_temp_dir.h"
10 #include "base/json/json_file_value_serializer.h" 10 #include "base/json/json_file_value_serializer.h"
11 #include "base/path_service.h" 11 #include "base/path_service.h"
12 #include "base/test/test_file_util.h" 12 #include "base/test/test_file_util.h"
13 #include "base/values.h" 13 #include "base/values.h"
14 #include "build/build_config.h" 14 #include "build/build_config.h"
15 #include "chrome/browser/ui/browser.h" 15 #include "chrome/browser/ui/browser.h"
16 #include "chrome/browser/ui/browser_window.h" 16 #include "chrome/browser/ui/browser_window.h"
17 #include "chrome/browser/ui/browser_window_state.h" 17 #include "chrome/browser/ui/browser_window_state.h"
18 #include "chrome/common/chrome_constants.h" 18 #include "chrome/common/chrome_constants.h"
19 #include "chrome/common/chrome_paths.h" 19 #include "chrome/common/chrome_paths.h"
20 #include "chrome/common/pref_names.h" 20 #include "chrome/common/pref_names.h"
21 #include "chrome/test/base/in_process_browser_test.h" 21 #include "chrome/test/base/in_process_browser_test.h"
22 #include "chrome/test/base/test_switches.h" 22 #include "chrome/test/base/test_switches.h"
23 #include "chrome/test/base/testing_profile.h" 23 #include "chrome/test/base/testing_profile.h"
24 #include "chrome/test/base/ui_test_utils.h" 24 #include "chrome/test/base/ui_test_utils.h"
25 #include "ui/gfx/rect.h" 25 #include "ui/gfx/geometry/rect.h"
26 26
27 typedef InProcessBrowserTest PreservedWindowPlacement; 27 typedef InProcessBrowserTest PreservedWindowPlacement;
28 28
29 IN_PROC_BROWSER_TEST_F(PreservedWindowPlacement, PRE_Test) { 29 IN_PROC_BROWSER_TEST_F(PreservedWindowPlacement, PRE_Test) {
30 browser()->window()->SetBounds(gfx::Rect(20, 30, 400, 500)); 30 browser()->window()->SetBounds(gfx::Rect(20, 30, 400, 500));
31 } 31 }
32 32
33 // Fails on Chrome OS as the browser thinks it is restarting after a crash, see 33 // Fails on Chrome OS as the browser thinks it is restarting after a crash, see
34 // http://crbug.com/168044 34 // http://crbug.com/168044
35 #if defined(OS_CHROMEOS) 35 #if defined(OS_CHROMEOS)
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 EXPECT_EQ(right, bounds.x() + bounds.width()); 223 EXPECT_EQ(right, bounds.x() + bounds.width());
224 224
225 // Find if launched window is maximized. 225 // Find if launched window is maximized.
226 bool is_window_maximized = browser()->window()->IsMaximized(); 226 bool is_window_maximized = browser()->window()->IsMaximized();
227 bool is_maximized = false; 227 bool is_maximized = false;
228 EXPECT_TRUE(root_dict->GetBoolean(kBrowserWindowPlacement + ".maximized", 228 EXPECT_TRUE(root_dict->GetBoolean(kBrowserWindowPlacement + ".maximized",
229 &is_maximized)); 229 &is_maximized));
230 EXPECT_EQ(is_maximized, is_window_maximized); 230 EXPECT_EQ(is_maximized, is_window_maximized);
231 } 231 }
232 #endif 232 #endif
OLDNEW
« no previous file with comments | « chrome/browser/password_manager/chrome_password_manager_client.h ('k') | chrome/browser/prerender/prerender_config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698