| 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 <stdint.h> | 5 #include <stdint.h> |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/location.h" | 8 #include "base/location.h" |
| 9 #include "base/single_thread_task_runner.h" | 9 #include "base/single_thread_task_runner.h" |
| 10 #include "base/thread_task_runner_handle.h" | 10 #include "base/threading/thread_task_runner_handle.h" |
| 11 #include "chromeos/dbus/fake_gsm_sms_client.h" | 11 #include "chromeos/dbus/fake_gsm_sms_client.h" |
| 12 | 12 |
| 13 namespace chromeos { | 13 namespace chromeos { |
| 14 | 14 |
| 15 FakeGsmSMSClient::FakeGsmSMSClient() | 15 FakeGsmSMSClient::FakeGsmSMSClient() |
| 16 : test_index_(-1), | 16 : test_index_(-1), |
| 17 sms_test_message_switch_present_(false), | 17 sms_test_message_switch_present_(false), |
| 18 weak_ptr_factory_(this) { | 18 weak_ptr_factory_(this) { |
| 19 test_messages_.push_back("Test Message 0"); | 19 test_messages_.push_back("Test Message 0"); |
| 20 test_messages_.push_back("Test Message 1"); | 20 test_messages_.push_back("Test Message 1"); |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 message->SetInteger("index", test_index_); | 109 message->SetInteger("index", test_index_); |
| 110 int msg_index = message_list_.GetSize(); | 110 int msg_index = message_list_.GetSize(); |
| 111 message_list_.Append(message); | 111 message_list_.Append(message); |
| 112 if (!handler_.is_null()) | 112 if (!handler_.is_null()) |
| 113 handler_.Run(msg_index, true); | 113 handler_.Run(msg_index, true); |
| 114 ++test_index_; | 114 ++test_index_; |
| 115 return true; | 115 return true; |
| 116 } | 116 } |
| 117 | 117 |
| 118 } // namespace chromeos | 118 } // namespace chromeos |
| OLD | NEW |