Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1416)

Side by Side Diff: content/browser/debugger/devtools_remote_message_unittest.cc

Issue 7274031: Wholesale move of debugger sources to content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add OWNERS and DEPS. Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698