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

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

Issue 538173002: [Password Generation] Remove old UI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_cocoa.mm ('k') | chrome/browser/ui/views/frame/browser_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/browser_window_cocoa_browsertest.mm
diff --git a/chrome/browser/ui/cocoa/browser_window_cocoa_browsertest.mm b/chrome/browser/ui/cocoa/browser_window_cocoa_browsertest.mm
deleted file mode 100644
index 8ec307a2faebbf4788611eb1dbf05ad40fd96a0b..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/cocoa/browser_window_cocoa_browsertest.mm
+++ /dev/null
@@ -1,39 +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 <objc/runtime.h>
-
-#import "chrome/browser/ui/cocoa/browser_window_cocoa.h"
-
-#include "base/logging.h"
-#include "chrome/browser/ui/browser.h"
-#include "chrome/browser/ui/browser_window.h"
-#include "chrome/browser/ui/cocoa/browser_window_cocoa.h"
-#import "chrome/browser/ui/cocoa/info_bubble_window.h"
-#include "chrome/test/base/in_process_browser_test.h"
-#include "components/autofill/core/browser/password_generator.h"
-#include "components/autofill/core/common/password_form.h"
-#include "ui/gfx/native_widget_types.h"
-#include "ui/gfx/rect.h"
-
-typedef InProcessBrowserTest BrowserWindowCocoaBrowsertest;
-
-IN_PROC_BROWSER_TEST_F(BrowserWindowCocoaBrowsertest,
- ShowPasswordGenerationBubble) {
- gfx::Rect rect;
- autofill::PasswordForm form;
- autofill::PasswordGenerator generator(10);
- browser()->window()->ShowPasswordGenerationBubble(rect, form, &generator);
-
- // Make sure that the password generation bubble is actually created.
- NSWindow* window = browser()->window()->GetNativeWindow();
- BOOL found = NO;
- for (NSUInteger i = 0; i < [[window childWindows] count]; i++) {
- id object = [[window childWindows] objectAtIndex:i];
- if ([object isKindOfClass:[InfoBubbleWindow class]])
- found = YES;
- }
- EXPECT_TRUE(found);
-}
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_cocoa.mm ('k') | chrome/browser/ui/views/frame/browser_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698