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

Unified Diff: chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_pending_view_controller_unittest.mm

Issue 1411733009: Bulk rename files in chrome/browser/ui/cocoa/passwords/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix-federation
Patch Set: Created 5 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/browser/ui/cocoa/passwords/manage_passwords_bubble_pending_view_controller_unittest.mm
diff --git a/chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_pending_view_controller_unittest.mm b/chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_pending_view_controller_unittest.mm
deleted file mode 100644
index 6ee33e9d7f027ceca394e58e028db657cd352f46..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_pending_view_controller_unittest.mm
+++ /dev/null
@@ -1,75 +0,0 @@
-// Copyright 2014 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 "chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_pending_view_controller.h"
-
-#include "base/mac/scoped_nsobject.h"
-#include "base/strings/string16.h"
-#include "base/strings/utf_string_conversions.h"
-#import "chrome/browser/ui/cocoa/bubble_combobox.h"
-#include "chrome/browser/ui/cocoa/cocoa_test_helper.h"
-#import "chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_pending_view_controller.h"
-#include "chrome/browser/ui/cocoa/passwords/manage_passwords_controller_test.h"
-#include "chrome/browser/ui/passwords/manage_passwords_bubble_model.h"
-#include "chrome/browser/ui/passwords/manage_passwords_ui_controller_mock.h"
-#include "testing/gtest/include/gtest/gtest.h"
-#include "testing/gtest_mac.h"
-
-namespace {
-
-class ManagePasswordsBubblePendingViewControllerTest
- : public ManagePasswordsControllerTest {
- public:
- ManagePasswordsBubblePendingViewControllerTest() {}
-
- void SetUp() override {
- ManagePasswordsControllerTest::SetUp();
- delegate_.reset([[ContentViewDelegateMock alloc] init]);
- }
-
- ContentViewDelegateMock* delegate() { return delegate_.get(); }
-
- ManagePasswordsBubblePendingViewController* controller() {
- if (!controller_) {
- controller_.reset([[ManagePasswordsBubblePendingViewController alloc]
- initWithModel:model()
- delegate:delegate()]);
- [controller_ loadView];
- }
- return controller_.get();
- }
-
- private:
- base::scoped_nsobject<ManagePasswordsBubblePendingViewController> controller_;
- base::scoped_nsobject<ContentViewDelegateMock> delegate_;
-};
-
-TEST_F(ManagePasswordsBubblePendingViewControllerTest,
- ShouldSavePasswordAndDismissWhenSaveClicked) {
- [controller().saveButton performClick:nil];
-
- EXPECT_TRUE([delegate() dismissed]);
- EXPECT_TRUE(ui_controller()->saved_password());
- EXPECT_FALSE(ui_controller()->never_saved_password());
-}
-
-TEST_F(ManagePasswordsBubblePendingViewControllerTest,
- ShouldNeverAndDismissWhenNeverClicked) {
- [controller().neverButton performClick:nil];
-
- EXPECT_TRUE([delegate() dismissed]);
- EXPECT_FALSE(ui_controller()->saved_password());
- EXPECT_TRUE(ui_controller()->never_saved_password());
-}
-
-TEST_F(ManagePasswordsBubblePendingViewControllerTest,
- ShouldDismissWhenCrossClicked) {
- [controller().closeButton performClick:nil];
-
- EXPECT_TRUE([delegate() dismissed]);
- EXPECT_FALSE(ui_controller()->saved_password());
- EXPECT_FALSE(ui_controller()->never_saved_password());
-}
-
-} // namespace

Powered by Google App Engine
This is Rietveld 408576698