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

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

Issue 1543393002: Switch to standard integer types in chrome/browser/ui/cocoa/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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) 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>
8
7 #include "base/json/json_reader.h" 9 #include "base/json/json_reader.h"
8 #include "base/mac/scoped_nsobject.h" 10 #include "base/mac/scoped_nsobject.h"
11 #include "base/macros.h"
9 #include "base/strings/utf_string_conversions.h" 12 #include "base/strings/utf_string_conversions.h"
10 #include "base/values.h" 13 #include "base/values.h"
11 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" 14 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h"
12 #include "components/omnibox/browser/suggestion_answer.h" 15 #include "components/omnibox/browser/suggestion_answer.h"
13 #import "testing/gtest_mac.h" 16 #import "testing/gtest_mac.h"
14 17
15 namespace { 18 namespace {
16 19
17 class OmniboxPopupCellTest : public CocoaTest { 20 class OmniboxPopupCellTest : public CocoaTest {
18 public: 21 public:
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 NSDictionary* currentAttributes = 95 NSDictionary* currentAttributes =
93 [[cellData_ description] attributesAtIndex:value.location 96 [[cellData_ description] attributesAtIndex:value.location
94 effectiveRange:&range]; 97 effectiveRange:&range];
95 EXPECT_TRUE(NSEqualRanges(value, range)); 98 EXPECT_TRUE(NSEqualRanges(value, range));
96 EXPECT_FALSE([currentAttributes isEqualToDictionary:lastAttributes]); 99 EXPECT_FALSE([currentAttributes isEqualToDictionary:lastAttributes]);
97 lastAttributes = currentAttributes; 100 lastAttributes = currentAttributes;
98 } 101 }
99 } 102 }
100 103
101 } // namespace 104 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm ('k') | chrome/browser/ui/cocoa/omnibox/omnibox_popup_matrix.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698