| 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 "chrome/test/chromedriver/logging.h" | 5 #include "chrome/test/chromedriver/logging.h" |
| 6 | 6 |
| 7 #include "base/values.h" | 7 #include "base/values.h" |
| 8 #include "chrome/test/chromedriver/capabilities.h" | 8 #include "chrome/test/chromedriver/capabilities.h" |
| 9 #include "chrome/test/chromedriver/chrome/devtools_event_listener.h" | 9 #include "chrome/test/chromedriver/chrome/devtools_event_listener.h" |
| 10 #include "chrome/test/chromedriver/chrome/status.h" | 10 #include "chrome/test/chromedriver/chrome/status.h" |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 ASSERT_EQ(1u, listeners.size()); | 157 ASSERT_EQ(1u, listeners.size()); |
| 158 ASSERT_STREQ("browser", logs[0]->GetType().c_str()); | 158 ASSERT_STREQ("browser", logs[0]->GetType().c_str()); |
| 159 | 159 |
| 160 // Verify the created "browser" log is "INFO" level. | 160 // Verify the created "browser" log is "INFO" level. |
| 161 logs[0]->AddEntry(Log::kLog, "info message"); | 161 logs[0]->AddEntry(Log::kLog, "info message"); |
| 162 logs[0]->AddEntry(Log::kDebug, "drop debug message"); | 162 logs[0]->AddEntry(Log::kDebug, "drop debug message"); |
| 163 scoped_ptr<base::ListValue> entries(logs[0]->GetAndClearEntries()); | 163 scoped_ptr<base::ListValue> entries(logs[0]->GetAndClearEntries()); |
| 164 ASSERT_EQ(1u, entries->GetSize()); | 164 ASSERT_EQ(1u, entries->GetSize()); |
| 165 ValidateLogEntry(entries.get(), 0, "INFO", "info message"); | 165 ValidateLogEntry(entries.get(), 0, "INFO", "info message"); |
| 166 } | 166 } |
| 167 |
| OLD | NEW |