| OLD | NEW |
| 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 "extensions/test/extension_test_message_listener.h" | 5 #include "extensions/test/extension_test_message_listener.h" |
| 6 | 6 |
| 7 #include "base/message_loop/message_loop.h" |
| 7 #include "base/strings/string_number_conversions.h" | 8 #include "base/strings/string_number_conversions.h" |
| 8 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
| 9 #include "content/public/browser/notification_service.h" | 10 #include "content/public/browser/notification_service.h" |
| 10 #include "content/public/browser/notification_source.h" | 11 #include "content/public/browser/notification_source.h" |
| 11 #include "content/public/test/test_utils.h" | 12 #include "content/public/test/test_utils.h" |
| 12 #include "extensions/browser/api/test/test_api.h" | 13 #include "extensions/browser/api/test/test_api.h" |
| 13 #include "extensions/browser/notification_types.h" | 14 #include "extensions/browser/notification_types.h" |
| 14 | 15 |
| 15 ExtensionTestMessageListener::ExtensionTestMessageListener( | 16 ExtensionTestMessageListener::ExtensionTestMessageListener( |
| 16 const std::string& expected_message, | 17 const std::string& expected_message, |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 function_ = function; | 113 function_ = function; |
| 113 if (!will_reply_) | 114 if (!will_reply_) |
| 114 Reply(std::string()); | 115 Reply(std::string()); |
| 115 | 116 |
| 116 if (waiting_) { | 117 if (waiting_) { |
| 117 waiting_ = false; | 118 waiting_ = false; |
| 118 base::MessageLoopForUI::current()->QuitWhenIdle(); | 119 base::MessageLoopForUI::current()->QuitWhenIdle(); |
| 119 } | 120 } |
| 120 } | 121 } |
| 121 } | 122 } |
| OLD | NEW |