| 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 "base/file_util.h" | 5 #include "base/file_util.h" |
| 6 #include "base/json/json_value_serializer.h" | 6 #include "base/json/json_file_value_serializer.h" |
| 7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
| 8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
| 9 #include "base/scoped_temp_dir.h" | 9 #include "base/scoped_temp_dir.h" |
| 10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
| 11 #include "chrome/browser/extensions/test_extension_service.h" | 11 #include "chrome/browser/extensions/test_extension_service.h" |
| 12 #include "chrome/browser/intents/web_intents_registry.h" | 12 #include "chrome/browser/intents/web_intents_registry.h" |
| 13 #include "chrome/browser/webdata/web_data_service.h" | 13 #include "chrome/browser/webdata/web_data_service.h" |
| 14 #include "chrome/common/chrome_paths.h" | 14 #include "chrome/common/chrome_paths.h" |
| 15 #include "chrome/common/extensions/extension_set.h" | 15 #include "chrome/common/extensions/extension_set.h" |
| 16 #include "content/test/test_browser_thread.h" | 16 #include "content/test/test_browser_thread.h" |
| (...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 consumer.expected_id_ = registry_.GetIntentServices( | 320 consumer.expected_id_ = registry_.GetIntentServices( |
| 321 ASCIIToUTF16("http://webintents.org/share"), | 321 ASCIIToUTF16("http://webintents.org/share"), |
| 322 ASCIIToUTF16("*"), &consumer); | 322 ASCIIToUTF16("*"), &consumer); |
| 323 consumer.WaitForData(); | 323 consumer.WaitForData(); |
| 324 ASSERT_EQ(4U, consumer.services_.size()); | 324 ASSERT_EQ(4U, consumer.services_.size()); |
| 325 EXPECT_EQ(services[0], consumer.services_[0]); | 325 EXPECT_EQ(services[0], consumer.services_[0]); |
| 326 EXPECT_EQ(services[1], consumer.services_[1]); | 326 EXPECT_EQ(services[1], consumer.services_[1]); |
| 327 EXPECT_EQ(services[2], consumer.services_[2]); | 327 EXPECT_EQ(services[2], consumer.services_[2]); |
| 328 EXPECT_EQ(services[3], consumer.services_[3]); | 328 EXPECT_EQ(services[3], consumer.services_[3]); |
| 329 } | 329 } |
| OLD | NEW |