OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #include "base/bind.h" | 5 #include "base/bind.h" |
6 #include "base/message_loop.h" | 6 #include "base/message_loop/message_loop.h" |
7 #include "chromeos/dbus/fake_gsm_sms_client.h" | 7 #include "chromeos/dbus/fake_gsm_sms_client.h" |
8 | 8 |
9 namespace chromeos { | 9 namespace chromeos { |
10 | 10 |
11 FakeGsmSMSClient::FakeGsmSMSClient() | 11 FakeGsmSMSClient::FakeGsmSMSClient() |
12 : test_index_(-1), | 12 : test_index_(-1), |
13 sms_test_message_switch_present_(false), | 13 sms_test_message_switch_present_(false), |
14 weak_ptr_factory_(this) { | 14 weak_ptr_factory_(this) { |
15 test_messages_.push_back("Test Message 0"); | 15 test_messages_.push_back("Test Message 0"); |
16 test_messages_.push_back("Test Message 1"); | 16 test_messages_.push_back("Test Message 1"); |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 message->SetInteger("index", test_index_); | 103 message->SetInteger("index", test_index_); |
104 int msg_index = message_list_.GetSize(); | 104 int msg_index = message_list_.GetSize(); |
105 message_list_.Append(message); | 105 message_list_.Append(message); |
106 if (!handler_.is_null()) | 106 if (!handler_.is_null()) |
107 handler_.Run(msg_index, true); | 107 handler_.Run(msg_index, true); |
108 ++test_index_; | 108 ++test_index_; |
109 return true; | 109 return true; |
110 } | 110 } |
111 | 111 |
112 } // namespace chromeos | 112 } // namespace chromeos |
OLD | NEW |