OLD | NEW |
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 Loading... |
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 |
OLD | NEW |