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/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" |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 std::vector<EventEntry> events_; | 111 std::vector<EventEntry> events_; |
112 // This is a record of the history of stats value reported for each stats | 112 // This is a record of the history of stats value reported for each stats |
113 // report id (e.g. ssrc-1234) for each stats name (e.g. framerate). | 113 // report id (e.g. ssrc-1234) for each stats name (e.g. framerate). |
114 // It a 2-D map with each map entry is a vector of reported values. | 114 // It a 2-D map with each map entry is a vector of reported values. |
115 // It is used to verify the graph data series. | 115 // It is used to verify the graph data series. |
116 std::map<string, StatsMap> stats_; | 116 std::map<string, StatsMap> stats_; |
117 }; | 117 }; |
118 | 118 |
119 static const int64 FAKE_TIME_STAMP = 3600000; | 119 static const int64 FAKE_TIME_STAMP = 3600000; |
120 | 120 |
121 #if defined(OS_WIN) | 121 #if defined(OS_WIN) || defined(OS_LINUX) |
122 // All tests are flaky on Windows: crbug.com/277322. | 122 // All tests are flaky on Windows: crbug.com/277322. |
| 123 // All tests are flaky on Linux: crbug.com/281492. |
123 #define MAYBE_WebRTCInternalsBrowserTest DISABLED_WebRTCInternalsBrowserTest | 124 #define MAYBE_WebRTCInternalsBrowserTest DISABLED_WebRTCInternalsBrowserTest |
124 #else | 125 #else |
125 #define MAYBE_WebRTCInternalsBrowserTest WebRTCInternalsBrowserTest | 126 #define MAYBE_WebRTCInternalsBrowserTest WebRTCInternalsBrowserTest |
126 #endif | 127 #endif |
127 | 128 |
128 class MAYBE_WebRTCInternalsBrowserTest: public ContentBrowserTest { | 129 class MAYBE_WebRTCInternalsBrowserTest: public ContentBrowserTest { |
129 public: | 130 public: |
130 MAYBE_WebRTCInternalsBrowserTest() {} | 131 MAYBE_WebRTCInternalsBrowserTest() {} |
131 virtual ~MAYBE_WebRTCInternalsBrowserTest() {} | 132 virtual ~MAYBE_WebRTCInternalsBrowserTest() {} |
132 | 133 |
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
709 ASSERT_TRUE(ExecuteScriptAndExtractString( | 710 ASSERT_TRUE(ExecuteScriptAndExtractString( |
710 shell()->web_contents(), | 711 shell()->web_contents(), |
711 "window.domAutomationController.send(" | 712 "window.domAutomationController.send(" |
712 "JSON.stringify(peerConnectionDataStore));", | 713 "JSON.stringify(peerConnectionDataStore));", |
713 &dump_json)); | 714 &dump_json)); |
714 dump.reset(base::JSONReader::Read(dump_json)); | 715 dump.reset(base::JSONReader::Read(dump_json)); |
715 VerifyStatsDump(dump.get(), pc_0, type, id, stats); | 716 VerifyStatsDump(dump.get(), pc_0, type, id, stats); |
716 } | 717 } |
717 | 718 |
718 } // namespace content | 719 } // namespace content |
OLD | NEW |