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

Side by Side Diff: chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac_unittest.mm

Issue 2565813002: Create c/b/ui/cocoa/test and move test files to there (Closed)
Patch Set: Rebase Created 4 years 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 #import "chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.h" 5 #import "chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <memory> 9 #include <memory>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/strings/sys_string_conversions.h" 12 #include "base/strings/sys_string_conversions.h"
13 #include "base/strings/utf_string_conversions.h" 13 #include "base/strings/utf_string_conversions.h"
14 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h"
15 #import "chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.h" 14 #import "chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.h"
15 #include "chrome/browser/ui/cocoa/test/cocoa_profile_test.h"
16 #include "chrome/test/base/testing_profile.h" 16 #include "chrome/test/base/testing_profile.h"
17 #include "components/omnibox/browser/autocomplete_input.h" 17 #include "components/omnibox/browser/autocomplete_input.h"
18 #include "components/omnibox/browser/autocomplete_result.h" 18 #include "components/omnibox/browser/autocomplete_result.h"
19 #include "ui/gfx/font_list.h" 19 #include "ui/gfx/font_list.h"
20 #include "ui/gfx/geometry/rect.h" 20 #include "ui/gfx/geometry/rect.h"
21 #include "ui/gfx/text_elider.h" 21 #include "ui/gfx/text_elider.h"
22 22
23 namespace { 23 namespace {
24 24
25 class MockOmniboxPopupViewMac : public OmniboxPopupViewMac { 25 class MockOmniboxPopupViewMac : public OmniboxPopupViewMac {
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 EXPECT_GT(popup_view.GetTargetBounds().height(), old_height); 76 EXPECT_GT(popup_view.GetTargetBounds().height(), old_height);
77 EXPECT_EQ(5, [popup_view.matrix() numberOfRows]); 77 EXPECT_EQ(5, [popup_view.matrix() numberOfRows]);
78 78
79 popup_view.SetResultCount(0); 79 popup_view.SetResultCount(0);
80 popup_view.UpdatePopupAppearance(); 80 popup_view.UpdatePopupAppearance();
81 EXPECT_FALSE(popup_view.IsOpen()); 81 EXPECT_FALSE(popup_view.IsOpen());
82 EXPECT_EQ(0, [popup_view.matrix() numberOfRows]); 82 EXPECT_EQ(0, [popup_view.matrix() numberOfRows]);
83 } 83 }
84 84
85 } // namespace 85 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698