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

Unified Diff: chrome/browser/ui/cocoa/web_intent_picker_test_base.h

Issue 10048005: Convert OSX intent picker unit tests to PlatformTests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed review issues 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/cocoa/web_intent_picker_test_base.h
diff --git a/chrome/browser/ui/cocoa/web_intent_picker_test_base.h b/chrome/browser/ui/cocoa/web_intent_picker_test_base.h
deleted file mode 100644
index 314bf19891e74854b85566f0881c90e408d2282d..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/cocoa/web_intent_picker_test_base.h
+++ /dev/null
@@ -1,44 +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.
-
-#ifndef CHROME_BROWSER_UI_COCOA_WEB_INTENT_PICKER_TEST_BASE_H_
-#define CHROME_BROWSER_UI_COCOA_WEB_INTENT_PICKER_TEST_BASE_H_
-#pragma once
-
-#include "base/memory/scoped_ptr.h"
-#include "chrome/browser/ui/intents/web_intent_picker_delegate.h"
-#include "chrome/browser/ui/intents/web_intent_picker_model.h"
-#include "testing/gmock/include/gmock/gmock.h"
-
-class TabContentsWrapper;
-class WebIntentPickerCocoa;
-@class WebIntentPickerSheetController;
-
-class MockIntentPickerDelegate : public WebIntentPickerDelegate {
- public:
- MockIntentPickerDelegate();
- virtual ~MockIntentPickerDelegate();
-
- MOCK_METHOD2(OnServiceChosen, void(const GURL& url, Disposition disposition));
- MOCK_METHOD1(OnInlineDispositionWebContentsCreated,
- void(content::WebContents* web_contents));
- MOCK_METHOD1(OnExtensionInstallRequested, void(const std::string& id));
- MOCK_METHOD0(OnCancelled, void());
- MOCK_METHOD0(OnClosing, void());
-};
-
-class WebIntentPickerTestBase {
- public:
- WebIntentPickerTestBase();
- ~WebIntentPickerTestBase();
-
- void CreateBubble(TabContentsWrapper* wrapper);
- WebIntentPickerSheetController* controller_; // Weak, owns self.
- NSWindow* window_; // Weak, owned by controller.
- scoped_ptr<WebIntentPickerCocoa> picker_;
- MockIntentPickerDelegate delegate_;
- WebIntentPickerModel model_; // The model used by the picker
-};
-
-#endif // CHROME_BROWSER_UI_COCOA_WEB_INTENT_PICKER_TEST_BASE_H_

Powered by Google App Engine
This is Rietveld 408576698