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

Side by Side Diff: chrome/browser/ui/autofill/popup_view_common_unittest.cc

Issue 1865213004: Convert //chrome/browser/ui from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "chrome/browser/ui/autofill/popup_view_common.h" 5 #include "chrome/browser/ui/autofill/popup_view_common.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <memory>
10
9 #include "base/macros.h" 11 #include "base/macros.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "chrome/test/base/chrome_render_view_host_test_harness.h" 12 #include "chrome/test/base/chrome_render_view_host_test_harness.h"
12 #include "content/public/browser/web_contents.h" 13 #include "content/public/browser/web_contents.h"
13 #include "ui/gfx/display.h" 14 #include "ui/gfx/display.h"
14 #include "ui/gfx/geometry/rect.h" 15 #include "ui/gfx/geometry/rect.h"
15 16
16 namespace autofill { 17 namespace autofill {
17 18
18 namespace { 19 namespace {
19 20
20 // Test class which overrides specific behavior for testing. 21 // Test class which overrides specific behavior for testing.
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 web_contents()->GetNativeView(), /* is_rtl= */ true); 100 web_contents()->GetNativeView(), /* is_rtl= */ true);
100 gfx::Rect expected_popup_bounds = test_cases[i].expected_popup_bounds_rtl; 101 gfx::Rect expected_popup_bounds = test_cases[i].expected_popup_bounds_rtl;
101 if (expected_popup_bounds.IsEmpty()) 102 if (expected_popup_bounds.IsEmpty())
102 expected_popup_bounds = test_cases[i].expected_popup_bounds_ltr; 103 expected_popup_bounds = test_cases[i].expected_popup_bounds_ltr;
103 EXPECT_EQ(expected_popup_bounds.ToString(), actual_popup_bounds.ToString()) 104 EXPECT_EQ(expected_popup_bounds.ToString(), actual_popup_bounds.ToString())
104 << "Popup bounds failed to match for rtl test " << i; 105 << "Popup bounds failed to match for rtl test " << i;
105 } 106 }
106 } 107 }
107 108
108 } // namespace autofill 109 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698