| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
| 8 #include "base/string_number_conversions.h" | 8 #include "base/string_number_conversions.h" |
| 9 #include "chrome/browser/debugger/devtools_remote.h" | 9 #include "content/browser/debugger/devtools_remote.h" |
| 10 #include "chrome/browser/debugger/devtools_remote_message.h" | 10 #include "content/browser/debugger/devtools_remote_message.h" |
| 11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
| 12 | 12 |
| 13 class DevToolsRemoteMessageTest : public testing::Test { | 13 class DevToolsRemoteMessageTest : public testing::Test { |
| 14 public: | 14 public: |
| 15 DevToolsRemoteMessageTest() : testing::Test() {} | 15 DevToolsRemoteMessageTest() : testing::Test() {} |
| 16 | 16 |
| 17 protected: | 17 protected: |
| 18 virtual void SetUp() { | 18 virtual void SetUp() { |
| 19 testing::Test::SetUp(); | 19 testing::Test::SetUp(); |
| 20 } | 20 } |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 message->GetHeaderWithEmptyDefault( | 61 message->GetHeaderWithEmptyDefault( |
| 62 DevToolsRemoteMessageHeaders::kDestination).c_str()); | 62 DevToolsRemoteMessageHeaders::kDestination).c_str()); |
| 63 ASSERT_STREQ( | 63 ASSERT_STREQ( |
| 64 "2", | 64 "2", |
| 65 message->destination().c_str()); | 65 message->destination().c_str()); |
| 66 ASSERT_EQ(content.size(), | 66 ASSERT_EQ(content.size(), |
| 67 static_cast<DevToolsRemoteMessage::HeaderMap::size_type>( | 67 static_cast<DevToolsRemoteMessage::HeaderMap::size_type>( |
| 68 message->content_length())); | 68 message->content_length())); |
| 69 ASSERT_STREQ(content.c_str(), message->content().c_str()); | 69 ASSERT_STREQ(content.c_str(), message->content().c_str()); |
| 70 } | 70 } |
| OLD | NEW |