OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "chrome/browser/ui/views/tabs/stacked_tab_strip_layout.h" | 5 #include "chrome/browser/ui/views/tabs/stacked_tab_strip_layout.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <string> | 9 #include <string> |
8 | 10 |
| 11 #include "base/macros.h" |
9 #include "base/strings/string_number_conversions.h" | 12 #include "base/strings/string_number_conversions.h" |
10 #include "base/strings/string_split.h" | 13 #include "base/strings/string_split.h" |
11 #include "base/strings/string_util.h" | 14 #include "base/strings/string_util.h" |
12 #include "content/public/test/test_browser_thread_bundle.h" | 15 #include "content/public/test/test_browser_thread_bundle.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
14 #include "ui/views/view.h" | 17 #include "ui/views/view.h" |
15 #include "ui/views/view_model.h" | 18 #include "ui/views/view_model.h" |
16 | 19 |
17 namespace { | 20 namespace { |
18 | 21 |
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
554 // Location can be honored. | 557 // Location can be honored. |
555 { { 0, 300, 100, 10, 2, 0, 3, "", "0 2 4 40 130 198 200" }, 40 }, | 558 { { 0, 300, 100, 10, 2, 0, 3, "", "0 2 4 40 130 198 200" }, 40 }, |
556 }; | 559 }; |
557 for (size_t i = 0; i < arraysize(test_data); ++i) { | 560 for (size_t i = 0; i < arraysize(test_data); ++i) { |
558 CreateLayout(test_data[i].common_data); | 561 CreateLayout(test_data[i].common_data); |
559 layout_->SetActiveTabLocation(test_data[i].location); | 562 layout_->SetActiveTabLocation(test_data[i].location); |
560 EXPECT_EQ(test_data[i].common_data.expected_bounds, BoundsString()) << | 563 EXPECT_EQ(test_data[i].common_data.expected_bounds, BoundsString()) << |
561 " at " << i; | 564 " at " << i; |
562 } | 565 } |
563 } | 566 } |
OLD | NEW |