diff options
author | mmenke@chromium.org <mmenke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-02 01:00:57 +0000 |
---|---|---|
committer | mmenke@chromium.org <mmenke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-02 01:00:57 +0000 |
commit | f3da152dfaa23bf58475e17d5f3d207806ae4705 (patch) | |
tree | bb00680a185d4038731ed16e92e1d16a24f29dd9 /net/udp/udp_socket_unittest.cc | |
parent | aa3c64b26eced83e5f7544d7243061e5c39e8d18 (diff) | |
download | chromium_src-f3da152dfaa23bf58475e17d5f3d207806ae4705.zip chromium_src-f3da152dfaa23bf58475e17d5f3d207806ae4705.tar.gz chromium_src-f3da152dfaa23bf58475e17d5f3d207806ae4705.tar.bz2 |
Rename CapturingNetLog::Entry to CapturingNetLog::CaptureEntry,
and have it keep its own copy of a NetLog Entry's parameters.
This is in preparation for a NetLog refactoring that will result
in NetLog parameters lasting no longer than the function call,
to avoid always having to copy all parameters.
This does make CapturingNetLogs much less efficient themselves,
but they should not be used in production code, anyways.
TEST=NONE
BUG=126243
Review URL: https://chromiumcodereview.appspot.com/10442085
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140146 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/udp/udp_socket_unittest.cc')
-rw-r--r-- | net/udp/udp_socket_unittest.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/udp/udp_socket_unittest.cc b/net/udp/udp_socket_unittest.cc index ea8791a..b0af0bf 100644 --- a/net/udp/udp_socket_unittest.cc +++ b/net/udp/udp_socket_unittest.cc @@ -171,7 +171,7 @@ TEST_F(UDPSocketTest, Connect) { client.reset(); // Check the server's log. - CapturingNetLog::EntryList server_entries; + CapturingNetLog::CapturedEntryList server_entries; server_log.GetEntries(&server_entries); EXPECT_EQ(4u, server_entries.size()); EXPECT_TRUE(LogContainsBeginEvent( @@ -184,7 +184,7 @@ TEST_F(UDPSocketTest, Connect) { server_entries, 3, NetLog::TYPE_SOCKET_ALIVE)); // Check the client's log. - CapturingNetLog::EntryList client_entries; + CapturingNetLog::CapturedEntryList client_entries; client_log.GetEntries(&client_entries); EXPECT_EQ(6u, client_entries.size()); EXPECT_TRUE(LogContainsBeginEvent( |