| 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 "base/command_line.h" | 5 #include "base/command_line.h" |
| 6 #include "base/json/json_reader.h" | 6 #include "base/json/json_reader.h" |
| 7 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
| 8 #include "base/time.h" | 8 #include "base/time/time.h" |
| 9 #include "base/values.h" | 9 #include "base/values.h" |
| 10 #include "content/public/common/content_switches.h" | 10 #include "content/public/common/content_switches.h" |
| 11 #include "content/public/test/browser_test_utils.h" | 11 #include "content/public/test/browser_test_utils.h" |
| 12 #include "content/shell/shell.h" | 12 #include "content/shell/shell.h" |
| 13 #include "content/test/content_browser_test.h" | 13 #include "content/test/content_browser_test.h" |
| 14 #include "content/test/content_browser_test_utils.h" | 14 #include "content/test/content_browser_test_utils.h" |
| 15 #include "net/test/embedded_test_server/embedded_test_server.h" | 15 #include "net/test/embedded_test_server/embedded_test_server.h" |
| 16 | 16 |
| 17 using std::string; | 17 using std::string; |
| 18 namespace content { | 18 namespace content { |
| (...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 705 ASSERT_TRUE(ExecuteScriptAndExtractString( | 705 ASSERT_TRUE(ExecuteScriptAndExtractString( |
| 706 shell()->web_contents(), | 706 shell()->web_contents(), |
| 707 "window.domAutomationController.send(" | 707 "window.domAutomationController.send(" |
| 708 "JSON.stringify(peerConnectionDataStore));", | 708 "JSON.stringify(peerConnectionDataStore));", |
| 709 &dump_json)); | 709 &dump_json)); |
| 710 dump.reset(base::JSONReader::Read(dump_json)); | 710 dump.reset(base::JSONReader::Read(dump_json)); |
| 711 VerifyStatsDump(dump.get(), pc_0, type, id, stats); | 711 VerifyStatsDump(dump.get(), pc_0, type, id, stats); |
| 712 } | 712 } |
| 713 | 713 |
| 714 } // namespace content | 714 } // namespace content |
| OLD | NEW |