Commit 4265822a authored by skyostil's avatar skyostil Committed by Commit bot

Add a message loop to TabControllerTest

This makes it possible to later migrate base/ from MessageLoopProxy
over to ThreadTaskRunnerHandle, which requires an active task runner on
the current thread.

TBR=msw@chromium.org
BUG=465354

Review URL: https://codereview.chromium.org/1114993002

Cr-Commit-Position: refs/heads/master@{#327496}
parent 18d21e1e
......@@ -5,6 +5,7 @@
#import <Cocoa/Cocoa.h>
#import "base/mac/scoped_nsobject.h"
#include "base/message_loop/message_loop.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/ui/cocoa/cocoa_test_helper.h"
#import "chrome/browser/ui/cocoa/tabs/media_indicator_button_cocoa.h"
......@@ -219,6 +220,9 @@ class TabControllerTest : public CocoaTest {
EXPECT_LE(NSMaxY(closeButtonFrame), NSMaxY(tabFrame));
}
}
private:
base::MessageLoop message_loop_;
};
// Tests creating the controller, sticking it in a window, and removing it.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment