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

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

Issue 12225076: Delete most web intents code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 10 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
deleted file mode 100644
index 1a03ab14b9b09c61f11a5a1ab9f32ddeced9ef7a..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/intents/web_intent_inline_disposition_delegate_unittest.cc
+++ /dev/null
@@ -1,59 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#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/test/base/browser_with_test_window_test.h"
-#include "chrome/test/base/testing_profile.h"
-#include "content/public/browser/web_contents.h"
-#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 {}
- virtual void OnExtensionInstallSuccess(const std::string& id) OVERRIDE {}
- virtual void OnExtensionInstallFailure(const std::string& id) OVERRIDE {}
- virtual void OnInlineDispositionAutoResize(const gfx::Size& size) OVERRIDE {}
- virtual void OnPendingAsyncCompleted() OVERRIDE {}
- virtual void InvalidateDelegate() OVERRIDE {}
-};
-
-class WebIntentInlineDispositionBrowserTest
- : public BrowserWithTestWindowTest {
- public:
- virtual void SetUp() {
- BrowserWithTestWindowTest::SetUp();
-
- web_contents_.reset(content::WebContents::Create(
- content::WebContents::CreateParams(browser()->profile())));
- delegate_.reset(new WebIntentInlineDispositionDelegate(
- &mock_, web_contents_.get(), browser()));
- }
-
- protected:
- TestingProfile profile_;
- scoped_ptr<content::WebContents> web_contents_;
- scoped_ptr<WebIntentInlineDispositionDelegate> delegate_;
- WebIntentPickerMock mock_;
-};
-
-// Verifies delegate's OpenURLFromTab works. This allows navigation inside
-// web intents picker.
-TEST_F(WebIntentInlineDispositionBrowserTest, OpenURLFromTabTest) {
- content::WebContents* source = delegate_->OpenURLFromTab(
- web_contents_.get(),
- content::OpenURLParams(GURL(chrome::kAboutBlankURL),
- content::Referrer(),
- NEW_FOREGROUND_TAB,
- content::PAGE_TRANSITION_LINK,
- false));
-
- // Ensure OpenURLFromTab loaded about::blank in |web_contents_|.
- ASSERT_EQ(web_contents_.get(), source);
- EXPECT_EQ(GURL(chrome::kAboutBlankURL).spec(), source->GetURL().spec());
-}
« 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