| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "chrome/browser/ui/cocoa/dev_tools_controller.h" | 5 #import "chrome/browser/ui/cocoa/dev_tools_controller.h" |
| 6 | 6 |
| 7 #include "base/macros.h" |
| 7 #include "chrome/browser/devtools/devtools_window.h" | 8 #include "chrome/browser/devtools/devtools_window.h" |
| 8 #include "chrome/browser/devtools/devtools_window_testing.h" | 9 #include "chrome/browser/devtools/devtools_window_testing.h" |
| 9 #include "chrome/browser/ui/browser.h" | 10 #include "chrome/browser/ui/browser.h" |
| 10 #include "chrome/browser/ui/browser_list.h" | 11 #include "chrome/browser/ui/browser_list.h" |
| 11 #include "chrome/browser/ui/browser_window.h" | 12 #include "chrome/browser/ui/browser_window.h" |
| 12 #include "chrome/browser/ui/cocoa/browser_window_controller.h" | 13 #include "chrome/browser/ui/cocoa/browser_window_controller.h" |
| 13 #include "chrome/browser/ui/find_bar/find_bar.h" | 14 #include "chrome/browser/ui/find_bar/find_bar.h" |
| 14 #include "chrome/browser/ui/find_bar/find_bar_controller.h" | 15 #include "chrome/browser/ui/find_bar/find_bar_controller.h" |
| 15 #include "chrome/common/url_constants.h" | 16 #include "chrome/common/url_constants.h" |
| 16 #include "chrome/test/base/in_process_browser_test.h" | 17 #include "chrome/test/base/in_process_browser_test.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 IN_PROC_BROWSER_TEST_F(DevToolsControllerTest, AllowOtherViews) { | 51 IN_PROC_BROWSER_TEST_F(DevToolsControllerTest, AllowOtherViews) { |
| 51 EXPECT_FALSE(web_contents()->GetAllowOtherViews()); | 52 EXPECT_FALSE(web_contents()->GetAllowOtherViews()); |
| 52 | 53 |
| 53 OpenDevToolsWindow(); | 54 OpenDevToolsWindow(); |
| 54 EXPECT_TRUE(devtools_web_contents()->GetAllowOtherViews()); | 55 EXPECT_TRUE(devtools_web_contents()->GetAllowOtherViews()); |
| 55 EXPECT_TRUE(web_contents()->GetAllowOtherViews()); | 56 EXPECT_TRUE(web_contents()->GetAllowOtherViews()); |
| 56 | 57 |
| 57 CloseDevToolsWindow(); | 58 CloseDevToolsWindow(); |
| 58 EXPECT_FALSE(web_contents()->GetAllowOtherViews()); | 59 EXPECT_FALSE(web_contents()->GetAllowOtherViews()); |
| 59 } | 60 } |
| OLD | NEW |