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

Unified Diff: chrome/browser/ui/passwords/password_manager_presenter_unittest.cc

Issue 71003002: Merge browser/ui/password and browser/ui/passwords. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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
Index: chrome/browser/ui/passwords/password_manager_presenter_unittest.cc
diff --git a/chrome/browser/ui/webui/options/password_manager_presenter_unittest.cc b/chrome/browser/ui/passwords/password_manager_presenter_unittest.cc
similarity index 92%
rename from chrome/browser/ui/webui/options/password_manager_presenter_unittest.cc
rename to chrome/browser/ui/passwords/password_manager_presenter_unittest.cc
index 73ca3102708d7be30ad92b7351f80ea7debffdec..f366132b1fc2bca554fee3a8dab097abb2ded88b 100644
--- a/chrome/browser/ui/webui/options/password_manager_presenter_unittest.cc
+++ b/chrome/browser/ui/passwords/password_manager_presenter_unittest.cc
@@ -5,8 +5,8 @@
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/password_manager/mock_password_store.h"
#include "chrome/browser/password_manager/password_store_factory.h"
-#include "chrome/browser/ui/password/password_ui_view.h"
-#include "chrome/browser/ui/webui/options/password_manager_presenter.h"
+#include "chrome/browser/ui/passwords/password_manager_presenter.h"
+#include "chrome/browser/ui/passwords/password_ui_view.h"
#include "chrome/test/base/testing_profile.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -15,7 +15,7 @@ using base::ASCIIToUTF16;
using testing::Eq;
using testing::Property;
-class MockPasswordUIView : public passwords_ui::PasswordUIView {
+class MockPasswordUIView : public PasswordUIView {
public:
explicit MockPasswordUIView(Profile* profile)
: profile_(profile), password_manager_presenter_(this) {
@@ -28,21 +28,19 @@ class MockPasswordUIView : public passwords_ui::PasswordUIView {
void(const ScopedVector<autofill::PasswordForm>&, bool));
MOCK_METHOD1(SetPasswordExceptionList,
void(const ScopedVector<autofill::PasswordForm>&));
- options::PasswordManagerPresenter* GetPasswordManagerPresenter() {
+ PasswordManagerPresenter* GetPasswordManagerPresenter() {
return &password_manager_presenter_;
}
private:
Profile* profile_;
- options::PasswordManagerPresenter password_manager_presenter_;
+ PasswordManagerPresenter password_manager_presenter_;
DISALLOW_COPY_AND_ASSIGN(MockPasswordUIView);
};
Profile* MockPasswordUIView::GetProfile() { return profile_; }
-namespace options {
-
class PasswordManagerPresenterTest : public testing::Test {
protected:
PasswordManagerPresenterTest() {}
@@ -137,4 +135,3 @@ TEST_F(PasswordManagerPresenterTest, UIControllerIsCalled) {
}
} // namespace
-} // namespace options
« no previous file with comments | « chrome/browser/ui/passwords/password_manager_presenter.cc ('k') | chrome/browser/ui/passwords/password_ui_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698