Commit 67a6561e authored by stevenjb@google.com's avatar stevenjb@google.com

Add kSmsTestMessages switch to sms handler unititest

BUG=141825

Review URL: https://chromiumcodereview.appspot.com/10828267

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151286 0039d316-1c4b-4281-b951-d872f2087c98
parent e9c7c377
...@@ -7,8 +7,10 @@ ...@@ -7,8 +7,10 @@
#include <set> #include <set>
#include <string> #include <string>
#include "base/command_line.h"
#include "base/memory/scoped_ptr.h" #include "base/memory/scoped_ptr.h"
#include "base/message_loop.h" #include "base/message_loop.h"
#include "chromeos/chromeos_switches.h"
#include "chromeos/dbus/dbus_thread_manager.h" #include "chromeos/dbus/dbus_thread_manager.h"
#include "testing/gtest/include/gtest/gtest.h" #include "testing/gtest/include/gtest/gtest.h"
...@@ -63,6 +65,11 @@ class NetworkSmsHandlerTest : public testing::Test { ...@@ -63,6 +65,11 @@ class NetworkSmsHandlerTest : public testing::Test {
}; };
TEST_F(NetworkSmsHandlerTest, SmsHandlerDbusStub) { TEST_F(NetworkSmsHandlerTest, SmsHandlerDbusStub) {
// Append '--sms-test-messages' to the command line to tell SMSClientStubImpl
// to generate a series of test SMS messages.
CommandLine* command_line = CommandLine::ForCurrentProcess();
command_line->AppendSwitch(chromeos::switches::kSmsTestMessages);
// This relies on the stub dbus implementations for FlimflamManagerClient, // This relies on the stub dbus implementations for FlimflamManagerClient,
// FlimflamDeviceClient, GsmSMSClient, ModemMessagingClient and SMSClient. // FlimflamDeviceClient, GsmSMSClient, ModemMessagingClient and SMSClient.
// Initialize a sms handler. The stub dbus clients will not send the // Initialize a sms handler. The stub dbus clients will not send the
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment