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

Unified Diff: chrome/test/base/interactive_test_utils_mac.mm

Issue 2382963002: Views: Add two disabled tests for invoking the CC unmask prompt dialog. (Closed)
Patch Set: Initial approach for invoking UI tests. Created 4 years, 2 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/test/base/interactive_test_utils_mac.mm
diff --git a/chrome/test/base/interactive_test_utils_mac.mm b/chrome/test/base/interactive_test_utils_mac.mm
index 0d00f3a6614e3aacd4c9141ed971ae02590ea1d1..ccbdde47a83e8d667f11b857c397cb3d325e527a 100644
--- a/chrome/test/base/interactive_test_utils_mac.mm
+++ b/chrome/test/base/interactive_test_utils_mac.mm
@@ -9,6 +9,7 @@
#include "base/message_loop/message_loop.h"
#include "chrome/app/chrome_command_ids.h"
+#include "chrome/test/base/move_test_process_to_front_mac.h"
#import "ui/base/test/windowed_nsnotification_observer.h"
namespace ui_test_utils {
@@ -19,9 +20,7 @@ void HideNativeWindow(gfx::NativeWindow window) {
bool ShowAndFocusNativeWindow(gfx::NativeWindow window) {
// Make sure an unbundled program can get the input focus.
- ProcessSerialNumber psn = { 0, kCurrentProcess };
- TransformProcessType(&psn,kProcessTransformToForegroundApplication);
- SetFrontProcess(&psn);
+ SetProcessToFront();
base::scoped_nsobject<WindowedNSNotificationObserver> async_waiter;
if (![window isKeyWindow]) {

Powered by Google App Engine
This is Rietveld 408576698