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

Unified Diff: chrome/browser/ui/cocoa/about_ipc_controller_unittest.mm

Issue 8574070: Move enabling IPC logging for all child processes to the Content API. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 9 years, 1 month 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
« no previous file with comments | « chrome/browser/ui/cocoa/about_ipc_controller.mm ('k') | chrome/browser/ui/views/about_ipc_dialog.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/about_ipc_controller_unittest.mm
===================================================================
--- chrome/browser/ui/cocoa/about_ipc_controller_unittest.mm (revision 110645)
+++ chrome/browser/ui/cocoa/about_ipc_controller_unittest.mm (working copy)
@@ -5,8 +5,10 @@
#import <Cocoa/Cocoa.h>
#import "base/memory/scoped_nsobject.h"
+#include "base/message_loop.h"
#import "chrome/browser/ui/cocoa/about_ipc_controller.h"
#include "chrome/browser/ui/cocoa/cocoa_test_helper.h"
+#include "content/test/test_browser_thread.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/platform_test.h"
@@ -15,6 +17,22 @@
namespace {
class AboutIPCControllerTest : public CocoaTest {
+ public:
+ virtual void SetUp() {
+ CocoaTest::SetUp();
+ ui_message_loop_.reset(new MessageLoopForUI());
+ ui_thread_.reset(new content::TestBrowserThread(content::BrowserThread::UI,
+ MessageLoop::current()));
+ }
+
+ virtual void TearDown() {
+ CocoaTest::TearDown();
+ ui_thread_.reset(NULL);
+ }
+
+ private:
+ scoped_ptr<MessageLoopForUI> ui_message_loop_;
+ scoped_ptr<content::TestBrowserThread> ui_thread_;
};
TEST_F(AboutIPCControllerTest, TestFilter) {
« no previous file with comments | « chrome/browser/ui/cocoa/about_ipc_controller.mm ('k') | chrome/browser/ui/views/about_ipc_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698