Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3919)

Unified Diff: chrome/browser/intents/web_intents_registry_unittest.cc

Issue 10384072: Update to handle absolute-looking paths in manifests and still produce nice-looking URLs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/intents/web_intents_registry_unittest.cc
diff --git a/chrome/browser/intents/web_intents_registry_unittest.cc b/chrome/browser/intents/web_intents_registry_unittest.cc
index 05540299ba1c7d61925ca50bb1d1c66f94b30ebe..015f0b832735ca22bceb8b1576925c294ff9d810 100644
--- a/chrome/browser/intents/web_intents_registry_unittest.cc
+++ b/chrome/browser/intents/web_intents_registry_unittest.cc
@@ -8,12 +8,14 @@
#include "base/message_loop.h"
#include "base/path_service.h"
#include "base/scoped_temp_dir.h"
+#include "base/stringprintf.h"
Aaron Boodman 2012/05/10 16:49:08 Doesn't look like either of these include addition
Greg Billock 2012/05/14 16:09:55 Done.
#include "base/utf_string_conversions.h"
#include "chrome/browser/extensions/test_extension_service.h"
#include "chrome/browser/intents/default_web_intent_service.h"
#include "chrome/browser/intents/web_intents_registry.h"
#include "chrome/browser/webdata/web_data_service.h"
#include "chrome/common/chrome_paths.h"
+#include "chrome/common/url_constants.h"
#include "chrome/common/extensions/extension_set.h"
#include "content/test/test_browser_thread.h"
#include "testing/gmock/include/gmock/gmock.h"
@@ -231,6 +233,9 @@ TEST_F(WebIntentsRegistryTest, GetIntentServicesForExtensionFilter) {
base::Unretained(&consumer)));
consumer.WaitForData();
ASSERT_EQ(1U, consumer.services_.size());
+
+ EXPECT_EQ(edit_extension->url().spec() + "services/edit",
+ consumer.services_[0].service_url.spec());
}
TEST_F(WebIntentsRegistryTest, GetAllIntents) {
« no previous file with comments | « no previous file | chrome/common/extensions/extension.cc » ('j') | chrome/common/extensions/extension_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698