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

Side by Side Diff: chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell_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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_cell.h" 5 #import "chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/json/json_reader.h" 9 #include "base/json/json_reader.h"
10 #include "base/mac/scoped_nsobject.h" 10 #include "base/mac/scoped_nsobject.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/strings/utf_string_conversions.h" 12 #include "base/strings/utf_string_conversions.h"
13 #include "base/values.h" 13 #include "base/values.h"
14 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" 14 #import "chrome/browser/ui/cocoa/test/cocoa_test_helper.h"
15 #include "components/omnibox/browser/suggestion_answer.h" 15 #include "components/omnibox/browser/suggestion_answer.h"
16 #import "testing/gtest_mac.h" 16 #import "testing/gtest_mac.h"
17 17
18 namespace { 18 namespace {
19 19
20 class OmniboxPopupCellTest : public CocoaTest { 20 class OmniboxPopupCellTest : public CocoaTest {
21 public: 21 public:
22 OmniboxPopupCellTest() { 22 OmniboxPopupCellTest() {
23 } 23 }
24 24
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 NSDictionary* lastAttributes = nil; 152 NSDictionary* lastAttributes = nil;
153 NSRange range; 153 NSRange range;
154 NSDictionary* currentAttributes = 154 NSDictionary* currentAttributes =
155 [[cellData_ description] attributesAtIndex:checkValue.location 155 [[cellData_ description] attributesAtIndex:checkValue.location
156 effectiveRange:&range]; 156 effectiveRange:&range];
157 EXPECT_TRUE(NSEqualRanges(checkValue, range)); 157 EXPECT_TRUE(NSEqualRanges(checkValue, range));
158 EXPECT_FALSE([currentAttributes isEqualToDictionary:lastAttributes]); 158 EXPECT_FALSE([currentAttributes isEqualToDictionary:lastAttributes]);
159 } 159 }
160 160
161 } // namespace 161 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/menu_button_unittest.mm ('k') | chrome/browser/ui/cocoa/omnibox/omnibox_popup_matrix_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698