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 "base/base_switches.h" | 5 #include "base/base_switches.h" |
6 #include "base/command_line.h" | 6 #include "base/command_line.h" |
7 #include "base/memory/memory_pressure_listener.h" | 7 #include "base/memory/memory_pressure_listener.h" |
8 #include "base/test/simple_test_tick_clock.h" | 8 #include "base/test/simple_test_tick_clock.h" |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
11 #include "chrome/browser/media/media_capture_devices_dispatcher.h" | 11 #include "chrome/browser/media/webrtc/media_capture_devices_dispatcher.h" |
12 #include "chrome/browser/media/media_stream_capture_indicator.h" | 12 #include "chrome/browser/media/webrtc/media_stream_capture_indicator.h" |
13 #include "chrome/browser/memory/tab_manager.h" | 13 #include "chrome/browser/memory/tab_manager.h" |
14 #include "chrome/browser/memory/tab_manager_web_contents_data.h" | 14 #include "chrome/browser/memory/tab_manager_web_contents_data.h" |
15 #include "chrome/browser/ui/browser.h" | 15 #include "chrome/browser/ui/browser.h" |
16 #include "chrome/browser/ui/browser_commands.h" | 16 #include "chrome/browser/ui/browser_commands.h" |
17 #include "chrome/browser/ui/find_bar/find_bar_controller.h" | 17 #include "chrome/browser/ui/find_bar/find_bar_controller.h" |
18 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 18 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
19 #include "chrome/common/chrome_features.h" | 19 #include "chrome/common/chrome_features.h" |
20 #include "chrome/common/url_constants.h" | 20 #include "chrome/common/url_constants.h" |
21 #include "chrome/test/base/in_process_browser_test.h" | 21 #include "chrome/test/base/in_process_browser_test.h" |
22 #include "chrome/test/base/interactive_test_utils.h" | 22 #include "chrome/test/base/interactive_test_utils.h" |
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
441 tab_manager->SetTabAutoDiscardableState(tsm->GetWebContentsAt(0), true); | 441 tab_manager->SetTabAutoDiscardableState(tsm->GetWebContentsAt(0), true); |
442 | 442 |
443 // Now it should be able to discard the tab. | 443 // Now it should be able to discard the tab. |
444 EXPECT_TRUE(tab_manager->DiscardTabImpl()); | 444 EXPECT_TRUE(tab_manager->DiscardTabImpl()); |
445 EXPECT_TRUE(tab_manager->IsTabDiscarded(tsm->GetWebContentsAt(0))); | 445 EXPECT_TRUE(tab_manager->IsTabDiscarded(tsm->GetWebContentsAt(0))); |
446 } | 446 } |
447 | 447 |
448 } // namespace memory | 448 } // namespace memory |
449 | 449 |
450 #endif // OS_WIN || OS_MAXOSX || OS_LINUX | 450 #endif // OS_WIN || OS_MAXOSX || OS_LINUX |
OLD | NEW |