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