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

Side by Side Diff: net/base/net_log_unittest.cc

Issue 9585026: Add a source id to global NetLog entries. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Missed one Created 8 years, 9 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
« no previous file with comments | « net/base/net_log.cc ('k') | net/http/http_auth_handler_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "base/memory/scoped_ptr.h"
5 #include "net/base/capturing_net_log.h" 6 #include "net/base/capturing_net_log.h"
6 #include "net/base/net_log.h" 7 #include "net/base/net_log.h"
7 #include "net/base/net_log_unittest.h" 8 #include "net/base/net_log_unittest.h"
8 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
9 10
10 namespace net { 11 namespace net {
11 12
12 namespace { 13 namespace {
13 14
14 TEST(NetLog, ScopedNetLogEventTest) { 15 TEST(NetLog, ScopedNetLogEventTest) {
(...skipping 10 matching lines...) Expand all
25 26
26 net_log_event.reset(); 27 net_log_event.reset();
27 log.GetEntries(&entries); 28 log.GetEntries(&entries);
28 EXPECT_EQ(2u, entries.size()); 29 EXPECT_EQ(2u, entries.size());
29 EXPECT_TRUE(LogContainsEndEvent(entries, 1, NetLog::TYPE_REQUEST_ALIVE)); 30 EXPECT_TRUE(LogContainsEndEvent(entries, 1, NetLog::TYPE_REQUEST_ALIVE));
30 } 31 }
31 32
32 } // namespace 33 } // namespace
33 34
34 } // namespace net 35 } // namespace net
OLDNEW
« no previous file with comments | « net/base/net_log.cc ('k') | net/http/http_auth_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698