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

Unified Diff: chrome/browser/ui/intents/web_intent_inline_disposition_delegate_unittest.cc

Issue 9959130: [Web Intents] Display throbber when loading inline disposition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 8 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/ui/intents/web_intent_inline_disposition_delegate_unittest.cc
diff --git a/chrome/browser/ui/intents/web_intent_inline_disposition_delegate_unittest.cc b/chrome/browser/ui/intents/web_intent_inline_disposition_delegate_unittest.cc
index 53c66fac8f651d2a2355017484c9ac088496cd23..ca0241d6efa55d95b715bbe7926d78817b50a657 100644
--- a/chrome/browser/ui/intents/web_intent_inline_disposition_delegate_unittest.cc
+++ b/chrome/browser/ui/intents/web_intent_inline_disposition_delegate_unittest.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/intents/web_intent_inline_disposition_delegate.h"
+#include "chrome/browser/ui/intents/web_intent_picker.h"
#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
#include "chrome/test/base/browser_with_test_window_test.h"
#include "chrome/test/base/testing_profile.h"
@@ -12,6 +13,12 @@
#include "content/public/common/url_constants.h"
#include "testing/gtest/include/gtest/gtest.h"
+class WebIntentPickerMock : public WebIntentPicker {
+ public:
+ virtual void Close() OVERRIDE {}
+ virtual void SetActionString(const string16& action) OVERRIDE {}
+};
+
class WebIntentInlineDispositionBrowserTest
: public BrowserWithTestWindowTest {
public:
@@ -21,7 +28,7 @@ class WebIntentInlineDispositionBrowserTest
content::WebContents* contents = content::WebContents::Create(
browser()->profile(), NULL, MSG_ROUTING_NONE, NULL, NULL);
wrapper_.reset(new TabContentsWrapper(contents));
- delegate_.reset(new WebIntentInlineDispositionDelegate);
+ delegate_.reset(new WebIntentInlineDispositionDelegate(&mock_));
contents->SetDelegate(delegate_.get());
}
@@ -29,6 +36,7 @@ class WebIntentInlineDispositionBrowserTest
TestingProfile profile_;
scoped_ptr<TabContentsWrapper> wrapper_;
scoped_ptr<WebIntentInlineDispositionDelegate> delegate_;
+ WebIntentPickerMock mock_;
};
// Verifies delegate's OpenURLFromTab works. This allows navigation inside
« no previous file with comments | « chrome/browser/ui/intents/web_intent_inline_disposition_delegate.cc ('k') | chrome/browser/ui/intents/web_intent_picker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698