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

Side by Side Diff: chromeos/dbus/shill_ipconfig_client_unittest.cc

Issue 11361211: chromeos: Remove unused CrosAddIPConfig/CrosRemoveIPConfig functions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « chromeos/dbus/shill_ipconfig_client.cc ('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 (c) 2012 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/bind.h" 5 #include "base/bind.h"
6 #include "base/values.h" 6 #include "base/values.h"
7 #include "chromeos/dbus/shill_client_unittest_base.h" 7 #include "chromeos/dbus/shill_client_unittest_base.h"
8 #include "chromeos/dbus/shill_ipconfig_client.h" 8 #include "chromeos/dbus/shill_ipconfig_client.h"
9 #include "dbus/message.h" 9 #include "dbus/message.h"
10 #include "dbus/values_util.h" 10 #include "dbus/values_util.h"
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 base::Bind(&ExpectNoArgument), 209 base::Bind(&ExpectNoArgument),
210 response.get()); 210 response.get());
211 // Call method. 211 // Call method.
212 client_->Remove(dbus::ObjectPath(kExampleIPConfigPath), 212 client_->Remove(dbus::ObjectPath(kExampleIPConfigPath),
213 base::Bind(&ExpectNoResultValue)); 213 base::Bind(&ExpectNoResultValue));
214 214
215 // Run the message loop. 215 // Run the message loop.
216 message_loop_.RunUntilIdle(); 216 message_loop_.RunUntilIdle();
217 } 217 }
218 218
219 TEST_F(ShillIPConfigClientTest, CallRemoveAndBlock) {
220 // Create response.
221 scoped_ptr<dbus::Response> response(dbus::Response::CreateEmpty());
222
223 // Set expectations.
224 PrepareForMethodCall(flimflam::kRemoveConfigFunction,
225 base::Bind(&ExpectNoArgument),
226 response.get());
227 // Call method.
228 EXPECT_TRUE(client_->CallRemoveAndBlock(
229 dbus::ObjectPath(kExampleIPConfigPath)));
230 }
231
232 } // namespace chromeos 219 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/dbus/shill_ipconfig_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698