| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <vector> | 5 #include <vector> |
| 6 | 6 |
| 7 #include "base/json/json_reader.h" | 7 #include "base/json/json_reader.h" |
| 8 #include "base/memory/scoped_vector.h" | 8 #include "base/memory/scoped_vector.h" |
| 9 #include "base/message_loop.h" |
| 9 #include "base/path_service.h" | 10 #include "base/path_service.h" |
| 10 #include "base/scoped_temp_dir.h" | 11 #include "base/scoped_temp_dir.h" |
| 11 #include "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
| 12 #include "base/values.h" | 13 #include "base/values.h" |
| 13 #include "chrome/browser/extensions/extension_event_router.h" | 14 #include "chrome/browser/extensions/extension_event_router.h" |
| 14 #include "chrome/browser/extensions/extension_menu_manager.h" | 15 #include "chrome/browser/extensions/extension_menu_manager.h" |
| 15 #include "chrome/browser/extensions/test_extension_prefs.h" | 16 #include "chrome/browser/extensions/test_extension_prefs.h" |
| 16 #include "chrome/common/chrome_notification_types.h" | 17 #include "chrome/common/chrome_notification_types.h" |
| 17 #include "chrome/common/chrome_paths.h" | 18 #include "chrome/common/chrome_paths.h" |
| 18 #include "chrome/common/extensions/extension.h" | 19 #include "chrome/common/extensions/extension.h" |
| (...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 485 ASSERT_EQ(params.page_url.spec(), tmp); | 486 ASSERT_EQ(params.page_url.spec(), tmp); |
| 486 | 487 |
| 487 string16 tmp16; | 488 string16 tmp16; |
| 488 ASSERT_TRUE(info->GetString("selectionText", &tmp16)); | 489 ASSERT_TRUE(info->GetString("selectionText", &tmp16)); |
| 489 ASSERT_EQ(params.selection_text, tmp16); | 490 ASSERT_EQ(params.selection_text, tmp16); |
| 490 | 491 |
| 491 bool bool_tmp = true; | 492 bool bool_tmp = true; |
| 492 ASSERT_TRUE(info->GetBoolean("editable", &bool_tmp)); | 493 ASSERT_TRUE(info->GetBoolean("editable", &bool_tmp)); |
| 493 ASSERT_EQ(params.is_editable, bool_tmp); | 494 ASSERT_EQ(params.is_editable, bool_tmp); |
| 494 } | 495 } |
| OLD | NEW |