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/test/chromedriver/commands.h" | 5 #include "chrome/test/chromedriver/commands.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 #include <string> | 10 #include <string> |
11 #include <utility> | 11 #include <utility> |
12 | 12 |
13 #include "base/bind.h" | 13 #include "base/bind.h" |
14 #include "base/callback.h" | 14 #include "base/callback.h" |
15 #include "base/compiler_specific.h" | 15 #include "base/compiler_specific.h" |
16 #include "base/files/file_path.h" | 16 #include "base/files/file_path.h" |
17 #include "base/location.h" | 17 #include "base/location.h" |
18 #include "base/memory/ptr_util.h" | 18 #include "base/memory/ptr_util.h" |
| 19 #include "base/message_loop/message_loop.h" |
19 #include "base/run_loop.h" | 20 #include "base/run_loop.h" |
20 #include "base/single_thread_task_runner.h" | 21 #include "base/single_thread_task_runner.h" |
21 #include "base/synchronization/lock.h" | 22 #include "base/synchronization/lock.h" |
22 #include "base/threading/thread.h" | 23 #include "base/threading/thread.h" |
23 #include "base/values.h" | 24 #include "base/values.h" |
24 #include "chrome/test/chromedriver/chrome/status.h" | 25 #include "chrome/test/chromedriver/chrome/status.h" |
25 #include "chrome/test/chromedriver/chrome/stub_chrome.h" | 26 #include "chrome/test/chromedriver/chrome/stub_chrome.h" |
26 #include "chrome/test/chromedriver/chrome/stub_web_view.h" | 27 #include "chrome/test/chromedriver/chrome/stub_web_view.h" |
27 #include "chrome/test/chromedriver/chrome/web_view.h" | 28 #include "chrome/test/chromedriver/chrome/web_view.h" |
28 #include "chrome/test/chromedriver/command_listener_proxy.h" | 29 #include "chrome/test/chromedriver/command_listener_proxy.h" |
(...skipping 803 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
832 cmd, | 833 cmd, |
833 false, | 834 false, |
834 params, | 835 params, |
835 id, | 836 id, |
836 base::Bind(&OnFailBecauseErrorNotifyingListeners, &run_loop)); | 837 base::Bind(&OnFailBecauseErrorNotifyingListeners, &run_loop)); |
837 run_loop.Run(); | 838 run_loop.Run(); |
838 | 839 |
839 thread->task_runner()->PostTask(FROM_HERE, | 840 thread->task_runner()->PostTask(FROM_HERE, |
840 base::Bind(&VerifySessionWasDeleted)); | 841 base::Bind(&VerifySessionWasDeleted)); |
841 } | 842 } |
OLD | NEW |