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

Side by Side Diff: chrome/browser/local_discovery/service_discovery_client_mac_unittest.mm

Issue 1467393002: Re-add "ip_address" field to Mac MDNS response fields. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « chrome/browser/local_discovery/service_discovery_client_mac.mm ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #import <Cocoa/Cocoa.h> 5 #import <Cocoa/Cocoa.h>
6 6
7 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" 7 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/mac/scoped_nsobject.h" 9 #include "base/mac/scoped_nsobject.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 resolver_impl->GetContainerForTesting()->SetServiceForTesting(test_service); 140 resolver_impl->GetContainerForTesting()->SetServiceForTesting(test_service);
141 resolver->StartResolving(); 141 resolver->StartResolving();
142 142
143 resolver_impl->GetContainerForTesting()->OnResolveUpdate( 143 resolver_impl->GetContainerForTesting()->OnResolveUpdate(
144 ServiceResolver::STATUS_SUCCESS); 144 ServiceResolver::STATUS_SUCCESS);
145 145
146 base::MessageLoop::current()->RunUntilIdle(); 146 base::MessageLoop::current()->RunUntilIdle();
147 147
148 EXPECT_EQ(1, num_resolves_); 148 EXPECT_EQ(1, num_resolves_);
149 EXPECT_EQ(2u, last_service_description_.metadata.size()); 149 EXPECT_EQ(2u, last_service_description_.metadata.size());
150 EXPECT_EQ(ip_address, last_service_description_.ip_address);
151 EXPECT_EQ(kPort, last_service_description_.address.port());
150 EXPECT_EQ(kIp, last_service_description_.address.host()); 152 EXPECT_EQ(kIp, last_service_description_.address.host());
151 EXPECT_EQ(kPort, last_service_description_.address.port());
152 } 153 }
153 154
154 } // namespace local_discovery 155 } // namespace local_discovery
OLDNEW
« no previous file with comments | « chrome/browser/local_discovery/service_discovery_client_mac.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698