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/tab.h" | 5 #include "chrome/browser/ui/views/tabs/tab.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/i18n/rtl.h" | 9 #include "base/i18n/rtl.h" |
| 10 #include "base/macros.h" |
8 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
9 #include "chrome/browser/ui/tabs/tab_utils.h" | 12 #include "chrome/browser/ui/tabs/tab_utils.h" |
10 #include "chrome/browser/ui/views/tabs/media_indicator_button.h" | 13 #include "chrome/browser/ui/views/tabs/media_indicator_button.h" |
11 #include "chrome/browser/ui/views/tabs/tab_controller.h" | 14 #include "chrome/browser/ui/views/tabs/tab_controller.h" |
12 #include "grit/theme_resources.h" | 15 #include "grit/theme_resources.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
14 #include "ui/base/models/list_selection_model.h" | 17 #include "ui/base/models/list_selection_model.h" |
15 #include "ui/views/controls/button/image_button.h" | 18 #include "ui/views/controls/button/image_button.h" |
16 #include "ui/views/controls/label.h" | 19 #include "ui/views/controls/label.h" |
17 #include "ui/views/test/views_test_base.h" | 20 #include "ui/views/test/views_test_base.h" |
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
493 EXPECT_FALSE(throbber->visible()); | 496 EXPECT_FALSE(throbber->visible()); |
494 } | 497 } |
495 | 498 |
496 // Test in both a LTR and a RTL locale. Note: The fact that the UI code is | 499 // Test in both a LTR and a RTL locale. Note: The fact that the UI code is |
497 // configured for an RTL locale does *not* change how the coordinates are | 500 // configured for an RTL locale does *not* change how the coordinates are |
498 // examined in the tests above because views::View and friends are supposed to | 501 // examined in the tests above because views::View and friends are supposed to |
499 // auto-mirror the widgets when painting. Thus, what we're testing here is that | 502 // auto-mirror the widgets when painting. Thus, what we're testing here is that |
500 // there's no code in Tab that will erroneously subvert this automatic | 503 // there's no code in Tab that will erroneously subvert this automatic |
501 // coordinate translation. http://crbug.com/384179 | 504 // coordinate translation. http://crbug.com/384179 |
502 INSTANTIATE_TEST_CASE_P(, TabTest, ::testing::Values(false, true)); | 505 INSTANTIATE_TEST_CASE_P(, TabTest, ::testing::Values(false, true)); |
OLD | NEW |