| Index: chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell_unittest.mm
|
| diff --git a/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell_unittest.mm b/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell_unittest.mm
|
| index ef828eec3d4a8074aec4d3d9cd232cc47459d3ee..7ca8b4a73d6e79d8515872562efc44cf6515928a 100644
|
| --- a/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell_unittest.mm
|
| +++ b/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell_unittest.mm
|
| @@ -21,6 +21,7 @@
|
| #include "testing/platform_test.h"
|
| #import "third_party/ocmock/OCMock/OCMock.h"
|
| #include "third_party/ocmock/gtest_support.h"
|
| +#include "ui/base/material_design/material_design_controller.h"
|
|
|
| using ::testing::Return;
|
| using ::testing::StrictMock;
|
| @@ -162,7 +163,11 @@ TEST_F(AutocompleteTextFieldCellTest, TextFrame) {
|
| textFrame = [cell textFrameForFrame:bounds];
|
| EXPECT_FALSE(NSIsEmptyRect(textFrame));
|
| EXPECT_TRUE(NSContainsRect(bounds, textFrame));
|
| - EXPECT_EQ(NSMinX(bounds), NSMinX(textFrame));
|
| + if (ui::MaterialDesignController::IsModeMaterial()) {
|
| + EXPECT_EQ(1, NSMinX(textFrame));
|
| + } else {
|
| + EXPECT_EQ(NSMinX(bounds), NSMinX(textFrame));
|
| + }
|
| EXPECT_EQ(NSMaxX(bounds), NSMaxX(textFrame));
|
| EXPECT_TRUE(NSContainsRect(cursorFrame, textFrame));
|
|
|
|
|