OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/performance_logger.h" | 5 #include "chrome/test/chromedriver/performance_logger.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
8 #include "base/format_macros.h" | 10 #include "base/format_macros.h" |
9 #include "base/json/json_reader.h" | 11 #include "base/json/json_reader.h" |
10 #include "base/memory/scoped_vector.h" | 12 #include "base/memory/scoped_vector.h" |
11 #include "base/time/time.h" | 13 #include "base/time/time.h" |
12 #include "base/values.h" | 14 #include "base/values.h" |
13 #include "chrome/test/chromedriver/chrome/devtools_client_impl.h" | 15 #include "chrome/test/chromedriver/chrome/devtools_client_impl.h" |
14 #include "chrome/test/chromedriver/chrome/log.h" | 16 #include "chrome/test/chromedriver/chrome/log.h" |
15 #include "chrome/test/chromedriver/chrome/status.h" | 17 #include "chrome/test/chromedriver/chrome/status.h" |
16 #include "chrome/test/chromedriver/chrome/stub_devtools_client.h" | 18 #include "chrome/test/chromedriver/chrome/stub_devtools_client.h" |
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
372 std::string webview; | 374 std::string webview; |
373 EXPECT_TRUE(message->GetString("webview", &webview)); | 375 EXPECT_TRUE(message->GetString("webview", &webview)); |
374 EXPECT_EQ(DevToolsClientImpl::kBrowserwideDevToolsClientId, webview); | 376 EXPECT_EQ(DevToolsClientImpl::kBrowserwideDevToolsClientId, webview); |
375 std::string method; | 377 std::string method; |
376 EXPECT_TRUE(message->GetString("message.method", &method)); | 378 EXPECT_TRUE(message->GetString("message.method", &method)); |
377 EXPECT_EQ("Tracing.bufferUsage", method); | 379 EXPECT_EQ("Tracing.bufferUsage", method); |
378 base::DictionaryValue* actual_params; | 380 base::DictionaryValue* actual_params; |
379 EXPECT_TRUE(message->GetDictionary("message.params", &actual_params)); | 381 EXPECT_TRUE(message->GetDictionary("message.params", &actual_params)); |
380 EXPECT_TRUE(actual_params->HasKey("error")); | 382 EXPECT_TRUE(actual_params->HasKey("error")); |
381 } | 383 } |
OLD | NEW |