OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/test/ui_test_utils.h" | 5 #include "chrome/test/ui_test_utils.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 Details<FindNotificationDetails> find_details(details); | 236 Details<FindNotificationDetails> find_details(details); |
237 if (find_details->request_id() == current_find_request_id_) { | 237 if (find_details->request_id() == current_find_request_id_) { |
238 // We get multiple responses and one of those will contain the ordinal. | 238 // We get multiple responses and one of those will contain the ordinal. |
239 // This message comes to us before the final update is sent. | 239 // This message comes to us before the final update is sent. |
240 if (find_details->active_match_ordinal() > -1) | 240 if (find_details->active_match_ordinal() > -1) |
241 active_match_ordinal_ = find_details->active_match_ordinal(); | 241 active_match_ordinal_ = find_details->active_match_ordinal(); |
242 if (find_details->final_update()) { | 242 if (find_details->final_update()) { |
243 number_of_matches_ = find_details->number_of_matches(); | 243 number_of_matches_ = find_details->number_of_matches(); |
244 MessageLoopForUI::current()->Quit(); | 244 MessageLoopForUI::current()->Quit(); |
245 } else { | 245 } else { |
246 DLOG(INFO) << "Ignoring, since we only care about the final message"; | 246 DVLOG(1) << "Ignoring, since we only care about the final message"; |
247 } | 247 } |
248 } | 248 } |
249 } else { | 249 } else { |
250 NOTREACHED(); | 250 NOTREACHED(); |
251 } | 251 } |
252 } | 252 } |
253 | 253 |
254 private: | 254 private: |
255 NotificationRegistrar registrar_; | 255 NotificationRegistrar registrar_; |
256 TabContents* parent_tab_; | 256 TabContents* parent_tab_; |
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
794 if (waiting_for_ == source) { | 794 if (waiting_for_ == source) { |
795 seen_ = true; | 795 seen_ = true; |
796 if (running_) | 796 if (running_) |
797 MessageLoopForUI::current()->Quit(); | 797 MessageLoopForUI::current()->Quit(); |
798 } else { | 798 } else { |
799 sources_seen_.insert(source.map_key()); | 799 sources_seen_.insert(source.map_key()); |
800 } | 800 } |
801 } | 801 } |
802 | 802 |
803 } // namespace ui_test_utils | 803 } // namespace ui_test_utils |
OLD | NEW |