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

Unified Diff: chrome/browser/ui/cocoa/location_bar/web_intents_button_decoration_unittest.mm

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/cocoa/location_bar/web_intents_button_decoration_unittest.mm
diff --git a/chrome/browser/ui/cocoa/location_bar/web_intents_button_decoration_unittest.mm b/chrome/browser/ui/cocoa/location_bar/web_intents_button_decoration_unittest.mm
deleted file mode 100644
index f4a9ba797ba86d3eea3cad67f6bac53ab0f1fca2..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/cocoa/location_bar/web_intents_button_decoration_unittest.mm
+++ /dev/null
@@ -1,58 +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.
-
-#import <Cocoa/Cocoa.h>
-
-#import "chrome/browser/ui/cocoa/location_bar/web_intents_button_decoration.h"
-
-#import "chrome/browser/ui/cocoa/cocoa_profile_test.h"
-#include "chrome/browser/ui/intents/web_intent_picker_controller.h"
-#include "content/public/browser/site_instance.h"
-#include "content/public/browser/web_intents_dispatcher.h"
-#include "testing/gtest/include/gtest/gtest.h"
-#include "webkit/glue/web_intent_data.h"
-#include "webkit/glue/web_intent_reply_data.h"
-
-class WebIntentsButtonDecorationTest : public CocoaProfileTest {
- public:
- WebIntentsButtonDecorationTest()
- : decoration_(NULL, [NSFont userFontOfSize:12]) {
- }
-
- void SetWindowDispositionSource(
- WebIntentPickerController* controller,
- content::WebContents* contents,
- content::WebIntentsDispatcher* dispatcher) {
- controller->SetWindowDispositionSource(contents, dispatcher);
- }
-
- WebIntentsButtonDecoration decoration_;
-};
-
-TEST_F(WebIntentsButtonDecorationTest, IdentifiesWebIntentService) {
- scoped_refptr<content::SiteInstance> instance =
- content::SiteInstance::Create(profile());
- content::WebContents::CreateParams create_params(profile(), instance.get());
- scoped_ptr<content::WebContents> contents(content::WebContents::Create(
- create_params));
- WebIntentPickerController::CreateForWebContents(contents.get());
-
- decoration_.Update(contents.get());
- EXPECT_FALSE(decoration_.IsVisible());
-
- webkit_glue::WebIntentData data;
- content::WebIntentsDispatcher* dispatcher =
- content::WebIntentsDispatcher::Create(data);
- WebIntentPickerController* web_intent_picker_controller =
- WebIntentPickerController::FromWebContents(contents.get());
- SetWindowDispositionSource(web_intent_picker_controller,
- contents.get(), dispatcher);
- web_intent_picker_controller->SetLocationBarPickerButtonIndicated();
-
- decoration_.Update(contents.get());
- EXPECT_TRUE(decoration_.IsVisible());
-
- dispatcher->SendReply(webkit_glue::WebIntentReply(
- webkit_glue::WEB_INTENT_REPLY_SUCCESS, string16()));
-}
« no previous file with comments | « chrome/browser/ui/cocoa/location_bar/web_intents_button_decoration.mm ('k') | chrome/browser/ui/extensions/shell_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698