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

Side by Side Diff: extensions/browser/api/cast_channel/cast_channel_api_unittest.cc

Issue 598173003: Run clang-modernize -use-nullptr over src/extensions/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "extensions/browser/api/cast_channel/cast_channel_api.h" 5 #include "extensions/browser/api/cast_channel/cast_channel_api.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "net/base/ip_endpoint.h" 8 #include "net/base/ip_endpoint.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 #include "url/gurl.h" 10 #include "url/gurl.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 typedef CastChannelOpenFunction ccof; 51 typedef CastChannelOpenFunction ccof;
52 scoped_ptr<net::IPEndPoint> ip_endpoint; 52 scoped_ptr<net::IPEndPoint> ip_endpoint;
53 53
54 // Valid ConnectInfo 54 // Valid ConnectInfo
55 ConnectInfo connect_info; 55 ConnectInfo connect_info;
56 connect_info.ip_address = "192.0.0.1"; 56 connect_info.ip_address = "192.0.0.1";
57 connect_info.port = 8009; 57 connect_info.port = 8009;
58 connect_info.auth = CHANNEL_AUTH_TYPE_SSL; 58 connect_info.auth = CHANNEL_AUTH_TYPE_SSL;
59 59
60 ip_endpoint.reset(ccof::ParseConnectInfo(connect_info)); 60 ip_endpoint.reset(ccof::ParseConnectInfo(connect_info));
61 EXPECT_TRUE(ip_endpoint.get() != NULL); 61 EXPECT_TRUE(ip_endpoint.get() != nullptr);
62 EXPECT_EQ(ip_endpoint->ToString(), "192.0.0.1:8009"); 62 EXPECT_EQ(ip_endpoint->ToString(), "192.0.0.1:8009");
63 } 63 }
64 64
65 } // namespace cast_channel 65 } // namespace cast_channel
66 } // namespace core_api 66 } // namespace core_api
67 } // namespace extensions 67 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698