| 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 #include <array> | 5 #include <array> |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
| 10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
| 11 #include "base/thread_task_runner_handle.h" | 11 #include "base/threading/thread_task_runner_handle.h" |
| 12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
| 13 #include "chrome/browser/extensions/api/desktop_capture/desktop_capture_api.h" | 13 #include "chrome/browser/extensions/api/desktop_capture/desktop_capture_api.h" |
| 14 #include "chrome/browser/extensions/extension_apitest.h" | 14 #include "chrome/browser/extensions/extension_apitest.h" |
| 15 #include "chrome/browser/media/fake_desktop_media_list.h" | 15 #include "chrome/browser/media/fake_desktop_media_list.h" |
| 16 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 16 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 17 #include "chrome/common/chrome_paths.h" | 17 #include "chrome/common/chrome_paths.h" |
| 18 #include "chrome/common/chrome_switches.h" | 18 #include "chrome/common/chrome_switches.h" |
| 19 #include "chrome/test/base/ui_test_utils.h" | 19 #include "chrome/test/base/ui_test_utils.h" |
| 20 #include "content/public/test/browser_test_utils.h" | 20 #include "content/public/test/browser_test_utils.h" |
| 21 #include "extensions/common/switches.h" | 21 #include "extensions/common/switches.h" |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 EXPECT_TRUE(result); | 284 EXPECT_TRUE(result); |
| 285 EXPECT_TRUE(test_flags[2].picker_created); | 285 EXPECT_TRUE(test_flags[2].picker_created); |
| 286 EXPECT_FALSE(test_flags[2].picker_deleted); | 286 EXPECT_FALSE(test_flags[2].picker_deleted); |
| 287 | 287 |
| 288 web_contents->Close(); | 288 web_contents->Close(); |
| 289 destroyed_watcher.Wait(); | 289 destroyed_watcher.Wait(); |
| 290 EXPECT_TRUE(test_flags[2].picker_deleted); | 290 EXPECT_TRUE(test_flags[2].picker_deleted); |
| 291 } | 291 } |
| 292 | 292 |
| 293 } // namespace extensions | 293 } // namespace extensions |
| OLD | NEW |