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/task_manager/task_manager.h" | 5 #include "chrome/browser/task_manager/task_manager.h" |
6 | 6 |
7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
8 #include "base/strings/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
11 #include "chrome/browser/chrome_notification_types.h" | 11 #include "chrome/browser/chrome_notification_types.h" |
12 #include "chrome/browser/devtools/devtools_window.h" | |
12 #include "chrome/browser/extensions/extension_browsertest.h" | 13 #include "chrome/browser/extensions/extension_browsertest.h" |
13 #include "chrome/browser/extensions/extension_service.h" | 14 #include "chrome/browser/extensions/extension_service.h" |
14 #include "chrome/browser/extensions/extension_system.h" | 15 #include "chrome/browser/extensions/extension_system.h" |
15 #include "chrome/browser/infobars/confirm_infobar_delegate.h" | 16 #include "chrome/browser/infobars/confirm_infobar_delegate.h" |
16 #include "chrome/browser/infobars/infobar_service.h" | 17 #include "chrome/browser/infobars/infobar_service.h" |
17 #include "chrome/browser/notifications/desktop_notification_service.h" | 18 #include "chrome/browser/notifications/desktop_notification_service.h" |
18 #include "chrome/browser/notifications/notification.h" | 19 #include "chrome/browser/notifications/notification.h" |
19 #include "chrome/browser/notifications/notification_test_util.h" | 20 #include "chrome/browser/notifications/notification_test_util.h" |
20 #include "chrome/browser/notifications/notification_ui_manager.h" | 21 #include "chrome/browser/notifications/notification_ui_manager.h" |
21 #include "chrome/browser/profiles/profile.h" | 22 #include "chrome/browser/profiles/profile.h" |
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
489 | 490 |
490 ASSERT_TRUE(model()->GetV8Memory(resource_index, &result)); | 491 ASSERT_TRUE(model()->GetV8Memory(resource_index, &result)); |
491 LOG(INFO) << "Got V8 Heap Size " << result << " bytes"; | 492 LOG(INFO) << "Got V8 Heap Size " << result << " bytes"; |
492 EXPECT_GE(result, minimal_heap_size); | 493 EXPECT_GE(result, minimal_heap_size); |
493 | 494 |
494 ASSERT_TRUE(model()->GetV8MemoryUsed(resource_index, &result)); | 495 ASSERT_TRUE(model()->GetV8MemoryUsed(resource_index, &result)); |
495 LOG(INFO) << "Got V8 Used Heap Size " << result << " bytes"; | 496 LOG(INFO) << "Got V8 Used Heap Size " << result << " bytes"; |
496 EXPECT_GE(result, minimal_heap_size); | 497 EXPECT_GE(result, minimal_heap_size); |
497 } | 498 } |
498 | 499 |
500 IN_PROC_BROWSER_TEST_F(TaskManagerBrowserTest, NoticeInTabDevToolsWindow) { | |
501 DevToolsWindow* dev_tools = DevToolsWindow::ToggleDevToolsWindow( | |
502 model()->GetResourceWebContents(1)->GetRenderViewHost(), | |
503 true, | |
504 DEVTOOLS_TOGGLE_ACTION_INSPECT); | |
505 // Dock side bottom should be the default. | |
506 ASSERT_EQ(DEVTOOLS_DOCK_SIDE_BOTTOM, dev_tools->dock_side()); | |
507 TaskManagerBrowserTestUtil::WaitForWebResourceChange(2); | |
vabr (Chromium)
2013/08/29 10:38:46
I have an issue with this browser test. If the Dev
| |
508 } | |
509 | |
499 #endif | 510 #endif |
OLD | NEW |