OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/command_line.h" | 5 #include "base/command_line.h" |
6 #include "base/gfx/rect.h" | 6 #include "base/gfx/rect.h" |
7 #include "base/json/json_reader.h" | 7 #include "base/json/json_reader.h" |
8 #include "base/json/json_writer.h" | 8 #include "base/json/json_writer.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "chrome/browser/automation/extension_automation_constants.h" | 10 #include "chrome/browser/automation/extension_automation_constants.h" |
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 | 362 |
363 "[\"windows.onRemoved\", \"[42]\"]", | 363 "[\"windows.onRemoved\", \"[42]\"]", |
364 | 364 |
365 "[\"windows.onFocusChanged\", \"[42]\"]", | 365 "[\"windows.onFocusChanged\", \"[42]\"]", |
366 | 366 |
367 // Tab events. | 367 // Tab events. |
368 "[\"tabs.onCreated\", \"[{'id\':42,'index':1,'windowId':1," | 368 "[\"tabs.onCreated\", \"[{'id\':42,'index':1,'windowId':1," |
369 "'selected':true,'url':'http://www.google.com'}]\"]", | 369 "'selected':true,'url':'http://www.google.com'}]\"]", |
370 | 370 |
371 "[\"tabs.onUpdated\", \"[42, {'status': 'complete'," | 371 "[\"tabs.onUpdated\", \"[42, {'status': 'complete'," |
372 "'url':'http://www.google.com'}]\"]", | 372 "'url':'http://www.google.com'}, {'id\':42,'index':1,'windowId':1," |
| 373 "'selected':true,'url':'http://www.google.com'}]\"]", |
373 | 374 |
374 "[\"tabs.onMoved\", \"[42, {'windowId':1,'fromIndex':1,'toIndex':2}]\"]", | 375 "[\"tabs.onMoved\", \"[42, {'windowId':1,'fromIndex':1,'toIndex':2}]\"]", |
375 | 376 |
376 "[\"tabs.onSelectionChanged\", \"[42, {'windowId':1}]\"]", | 377 "[\"tabs.onSelectionChanged\", \"[42, {'windowId':1}]\"]", |
377 | 378 |
378 "[\"tabs.onAttached\", \"[42, {'newWindowId':1,'newPosition':1}]\"]", | 379 "[\"tabs.onAttached\", \"[42, {'newWindowId':1,'newPosition':1}]\"]", |
379 | 380 |
380 "[\"tabs.onDetached\", \"[43, {'oldWindowId':1,'oldPosition':1}]\"]", | 381 "[\"tabs.onDetached\", \"[43, {'oldWindowId':1,'oldPosition':1}]\"]", |
381 | 382 |
382 "[\"tabs.onRemoved\", \"[43]\"]", | 383 "[\"tabs.onRemoved\", \"[43]\"]", |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
512 proxy->event_count_.size()); | 513 proxy->event_count_.size()); |
513 for (std::map<std::string, int>::iterator i = proxy->event_count_.begin(); | 514 for (std::map<std::string, int>::iterator i = proxy->event_count_.begin(); |
514 i != proxy->event_count_.end(); ++i) { | 515 i != proxy->event_count_.end(); ++i) { |
515 const std::pair<std::string, int>& value = *i; | 516 const std::pair<std::string, int>& value = *i; |
516 ASSERT_EQ(1, value.second); | 517 ASSERT_EQ(1, value.second); |
517 } | 518 } |
518 } | 519 } |
519 #endif // defined(OS_WIN) | 520 #endif // defined(OS_WIN) |
520 | 521 |
521 } // namespace | 522 } // namespace |
OLD | NEW |