OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 <string> | 5 #include <string> |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/file_util.h" | |
10 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "base/files/file_util.h" |
11 #include "base/memory/linked_ptr.h" | 11 #include "base/memory/linked_ptr.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/message_loop/message_loop.h" | 13 #include "base/message_loop/message_loop.h" |
14 #include "base/run_loop.h" | 14 #include "base/run_loop.h" |
15 #include "base/threading/thread.h" | 15 #include "base/threading/thread.h" |
16 #include "base/values.h" | 16 #include "base/values.h" |
17 #include "chrome/test/chromedriver/chrome/status.h" | 17 #include "chrome/test/chromedriver/chrome/status.h" |
18 #include "chrome/test/chromedriver/chrome/stub_chrome.h" | 18 #include "chrome/test/chromedriver/chrome/stub_chrome.h" |
19 #include "chrome/test/chromedriver/commands.h" | 19 #include "chrome/test/chromedriver/commands.h" |
20 #include "chrome/test/chromedriver/session.h" | 20 #include "chrome/test/chromedriver/session.h" |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 status_code = ExecuteSetAutoReporting(&session, params, &value).code(); | 148 status_code = ExecuteSetAutoReporting(&session, params, &value).code(); |
149 ASSERT_EQ(kOk, status_code); | 149 ASSERT_EQ(kOk, status_code); |
150 ASSERT_FALSE(session.auto_reporting_enabled); | 150 ASSERT_FALSE(session.auto_reporting_enabled); |
151 | 151 |
152 // check that autoreporting was disabled successfully | 152 // check that autoreporting was disabled successfully |
153 status_code = ExecuteIsAutoReporting(&session, params, &value).code(); | 153 status_code = ExecuteIsAutoReporting(&session, params, &value).code(); |
154 ASSERT_EQ(kOk, status_code); | 154 ASSERT_EQ(kOk, status_code); |
155 ASSERT_TRUE(value.get()->GetAsBoolean(&enabled)); | 155 ASSERT_TRUE(value.get()->GetAsBoolean(&enabled)); |
156 ASSERT_FALSE(enabled); | 156 ASSERT_FALSE(enabled); |
157 } | 157 } |
OLD | NEW |