| 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 #import <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> | 
| 6 | 6 | 
| 7 #include "base/bind_helpers.h" | 7 #include "base/bind_helpers.h" | 
| 8 #include "base/mac/scoped_nsautorelease_pool.h" | 8 #include "base/mac/scoped_nsautorelease_pool.h" | 
| 9 #include "chrome/browser/media/webrtc/media_capture_devices_dispatcher.h" | 9 #include "chrome/browser/media/webrtc/media_capture_devices_dispatcher.h" | 
| 10 #include "chrome/browser/media/webrtc/media_stream_capture_indicator.h" | 10 #include "chrome/browser/media/webrtc/media_stream_capture_indicator.h" | 
| 11 #include "chrome/browser/ui/browser_window.h" | 11 #include "chrome/browser/ui/browser_window.h" | 
| 12 #import "chrome/browser/ui/cocoa/browser_window_controller.h" | 12 #import "chrome/browser/ui/cocoa/browser_window_controller.h" | 
| 13 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h" |  | 
| 14 #import "chrome/browser/ui/cocoa/new_tab_button.h" | 13 #import "chrome/browser/ui/cocoa/new_tab_button.h" | 
| 15 #import "chrome/browser/ui/cocoa/tabs/tab_controller.h" | 14 #import "chrome/browser/ui/cocoa/tabs/tab_controller.h" | 
| 16 #import "chrome/browser/ui/cocoa/tabs/tab_strip_controller.h" | 15 #import "chrome/browser/ui/cocoa/tabs/tab_strip_controller.h" | 
| 17 #import "chrome/browser/ui/cocoa/tabs/tab_strip_view.h" | 16 #import "chrome/browser/ui/cocoa/tabs/tab_strip_view.h" | 
| 18 #import "chrome/browser/ui/cocoa/tabs/tab_view.h" | 17 #import "chrome/browser/ui/cocoa/tabs/tab_view.h" | 
|  | 18 #include "chrome/browser/ui/cocoa/test/cocoa_profile_test.h" | 
| 19 #include "chrome/browser/ui/tabs/tab_utils.h" | 19 #include "chrome/browser/ui/tabs/tab_utils.h" | 
| 20 #include "chrome/browser/ui/tabs/test_tab_strip_model_delegate.h" | 20 #include "chrome/browser/ui/tabs/test_tab_strip_model_delegate.h" | 
| 21 #include "chrome/test/base/testing_profile.h" | 21 #include "chrome/test/base/testing_profile.h" | 
| 22 #include "content/public/browser/site_instance.h" | 22 #include "content/public/browser/site_instance.h" | 
| 23 #include "content/public/browser/web_contents.h" | 23 #include "content/public/browser/web_contents.h" | 
| 24 #include "content/public/common/media_stream_request.h" | 24 #include "content/public/common/media_stream_request.h" | 
| 25 #include "testing/gtest/include/gtest/gtest.h" | 25 #include "testing/gtest/include/gtest/gtest.h" | 
| 26 #import "testing/gtest_mac.h" | 26 #import "testing/gtest_mac.h" | 
| 27 #include "testing/platform_test.h" | 27 #include "testing/platform_test.h" | 
| 28 #include "ui/events/test/cocoa_test_event_utils.h" | 28 #include "ui/events/test/cocoa_test_event_utils.h" | 
| (...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 486   [tabStripControllerForTesting setAlertStateForContents:contents_at_tab0 | 486   [tabStripControllerForTesting setAlertStateForContents:contents_at_tab0 | 
| 487                                           withAlertState:TabAlertState::NONE]; | 487                                           withAlertState:TabAlertState::NONE]; | 
| 488   [controller_ updateWindowAlertState:TabAlertState::NONE | 488   [controller_ updateWindowAlertState:TabAlertState::NONE | 
| 489                        forWebContents:contents_at_tab0]; | 489                        forWebContents:contents_at_tab0]; | 
| 490   // Neither of tabs playing nor muting, so the window alert state should be | 490   // Neither of tabs playing nor muting, so the window alert state should be | 
| 491   // NONE. | 491   // NONE. | 
| 492   EXPECT_EQ(TabAlertState::NONE, [window_controller alertState]); | 492   EXPECT_EQ(TabAlertState::NONE, [window_controller alertState]); | 
| 493 } | 493 } | 
| 494 | 494 | 
| 495 }  // namespace | 495 }  // namespace | 
| OLD | NEW | 
|---|