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 #include "chrome/browser/ui/views/tabs/tab_controller.h" | 6 #include "chrome/browser/ui/views/tabs/tab_controller.h" |
7 | 7 |
8 #include "base/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
10 #include "ui/base/models/list_selection_model.h" | 10 #include "ui/base/models/list_selection_model.h" |
11 #include "ui/views/controls/button/image_button.h" | 11 #include "ui/views/controls/button/image_button.h" |
12 #include "ui/views/test/views_test_base.h" | 12 #include "ui/views/test/views_test_base.h" |
13 #include "ui/views/widget/widget.h" | 13 #include "ui/views/widget/widget.h" |
14 | 14 |
15 using views::Widget; | 15 using views::Widget; |
16 | 16 |
17 class FakeTabController : public TabController { | 17 class FakeTabController : public TabController { |
18 public: | 18 public: |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 EXPECT_TRUE(IconAnimationInvariant(tab)); | 205 EXPECT_TRUE(IconAnimationInvariant(tab)); |
206 EXPECT_EQ(TabRendererData::CAPTURE_STATE_NONE, tab.data().capture_state); | 206 EXPECT_EQ(TabRendererData::CAPTURE_STATE_NONE, tab.data().capture_state); |
207 | 207 |
208 data.audio_state = TabRendererData::AUDIO_STATE_NONE; | 208 data.audio_state = TabRendererData::AUDIO_STATE_NONE; |
209 tab.SetData(data); | 209 tab.SetData(data); |
210 EXPECT_TRUE(IconAnimationInvariant(tab)); | 210 EXPECT_TRUE(IconAnimationInvariant(tab)); |
211 EXPECT_EQ(TabRendererData::AUDIO_STATE_NONE, tab.data().audio_state); | 211 EXPECT_EQ(TabRendererData::AUDIO_STATE_NONE, tab.data().audio_state); |
212 EXPECT_EQ(TabRendererData::CAPTURE_STATE_NONE, tab.data().capture_state); | 212 EXPECT_EQ(TabRendererData::CAPTURE_STATE_NONE, tab.data().capture_state); |
213 EXPECT_TRUE(IconAnimationInvariant(tab)); | 213 EXPECT_TRUE(IconAnimationInvariant(tab)); |
214 } | 214 } |
OLD | NEW |