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

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

Issue 12041029: Add ResetModem method and call it once non_cellular activation is done. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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 | « chromeos/dbus/shill_device_client.cc ('k') | chromeos/network/cros_network_functions.h » ('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) 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_device_client.h" 8 #include "chromeos/dbus/shill_device_client.h"
9 #include "dbus/message.h" 9 #include "dbus/message.h"
10 #include "dbus/object_path.h" 10 #include "dbus/object_path.h"
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 EXPECT_CALL(mock_closure, Run()).Times(1); 385 EXPECT_CALL(mock_closure, Run()).Times(1);
386 // Call method. 386 // Call method.
387 client_->SetCarrier(dbus::ObjectPath(kExampleDevicePath), 387 client_->SetCarrier(dbus::ObjectPath(kExampleDevicePath),
388 kCarrier, 388 kCarrier,
389 mock_closure.GetCallback(), 389 mock_closure.GetCallback(),
390 mock_error_callback.GetCallback()); 390 mock_error_callback.GetCallback());
391 // Run the message loop. 391 // Run the message loop.
392 message_loop_.RunUntilIdle(); 392 message_loop_.RunUntilIdle();
393 } 393 }
394 394
395 TEST_F(ShillDeviceClientTest, Reset) {
396 // Create response.
397 scoped_ptr<dbus::Response> response(dbus::Response::CreateEmpty());
398
399 // Set expectations.
400 MockClosure mock_closure;
401 MockErrorCallback mock_error_callback;
402 PrepareForMethodCall(shill::kResetFunction,
403 base::Bind(&ExpectNoArgument),
404 response.get());
405 EXPECT_CALL(mock_closure, Run()).Times(1);
406 // Call method.
407 client_->Reset(dbus::ObjectPath(kExampleDevicePath),
408 mock_closure.GetCallback(),
409 mock_error_callback.GetCallback());
410 // Run the message loop.
411 message_loop_.RunUntilIdle();
412 }
413
395 } // namespace chromeos 414 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/dbus/shill_device_client.cc ('k') | chromeos/network/cros_network_functions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698