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

Side by Side Diff: content/renderer/android/disambiguation_popup_helper_unittest.cc

Issue 1926173002: Erase LinkDisambiguation code on desktop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: another merge conflict Created 4 years, 7 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 "content/renderer/disambiguation_popup_helper.h" 5 #include "content/renderer/android/disambiguation_popup_helper.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 #include "third_party/WebKit/public/platform/WebRect.h" 10 #include "third_party/WebKit/public/platform/WebRect.h"
11 #include "third_party/WebKit/public/platform/WebVector.h" 11 #include "third_party/WebKit/public/platform/WebVector.h"
12 #include "ui/gfx/geometry/rect.h" 12 #include "ui/gfx/geometry/rect.h"
13 #include "ui/gfx/geometry/size.h" 13 #include "ui/gfx/geometry/size.h"
14 #include "ui/gfx/geometry/size_conversions.h" 14 #include "ui/gfx/geometry/size_conversions.h"
15 15
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 81
82 EXPECT_TRUE(gfx::Rect(kVisibleContentSize_).Contains(zoom_rect)); 82 EXPECT_TRUE(gfx::Rect(kVisibleContentSize_).Contains(zoom_rect));
83 EXPECT_EQ(kDisambiguationPopupMaxScale, scale); 83 EXPECT_EQ(kDisambiguationPopupMaxScale, scale);
84 EXPECT_TRUE(zoom_rect.Contains(tap_rect)); 84 EXPECT_TRUE(zoom_rect.Contains(tap_rect));
85 85
86 gfx::Size scaled_size = gfx::ScaleToCeiledSize(zoom_rect.size(), scale); 86 gfx::Size scaled_size = gfx::ScaleToCeiledSize(zoom_rect.size(), scale);
87 EXPECT_TRUE(gfx::Rect(kScreenSize_).Contains(gfx::Rect(scaled_size))); 87 EXPECT_TRUE(gfx::Rect(kScreenSize_).Contains(gfx::Rect(scaled_size)));
88 } 88 }
89 89
90 } // namespace content 90 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/android/disambiguation_popup_helper.cc ('k') | content/renderer/disambiguation_popup_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698