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

Unified Diff: chrome/browser/chromeos/login/mixin_in_process_browser_test.cc

Issue 574703002: Creating mixin-supporting InProcessBrowserTests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed a typo 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
Index: chrome/browser/chromeos/login/mixin_in_process_browser_test.cc
diff --git a/chrome/browser/chromeos/login/mixin_in_process_browser_test.cc b/chrome/browser/chromeos/login/mixin_in_process_browser_test.cc
new file mode 100644
index 0000000000000000000000000000000000000000..cc799dbe595d6deee6eb7ee45083ca3ad66e5f32
--- /dev/null
+++ b/chrome/browser/chromeos/login/mixin_in_process_browser_test.cc
@@ -0,0 +1,61 @@
+// Copyright (c) 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.
+
+#include "chrome/browser/chromeos/login/mixin_in_process_browser_test.h"
+
+namespace chromeos {
+
+MixinInProcessBrowserTest::MixinInProcessBrowserTest() {
+}
+
+MixinInProcessBrowserTest::~MixinInProcessBrowserTest() {
+}
+
+void MixinInProcessBrowserTest::SetUpCommandLine(
+ base::CommandLine* command_line) {
+ for (ScopedVector<Mixin>::iterator it = mixins_.begin(); it != mixins_.end();
+ ++it) {
+ (*it)->SetUpCommandLine(command_line);
+ }
+ InProcessBrowserTest::SetUpCommandLine(command_line);
+}
+
+void MixinInProcessBrowserTest::SetUpOnMainThread() {
+ for (ScopedVector<Mixin>::iterator it = mixins_.begin(); it != mixins_.end();
+ ++it) {
+ (*it)->SetUpOnMainThread();
+ }
+ InProcessBrowserTest::SetUpOnMainThread();
+}
+void MixinInProcessBrowserTest::SetUpInProcessBrowserTestFixture() {
+ for (ScopedVector<Mixin>::iterator it = mixins_.begin(); it != mixins_.end();
+ ++it) {
+ (*it)->SetUpInProcessBrowserTestFixture();
+ }
+ InProcessBrowserTest::SetUpInProcessBrowserTestFixture();
+}
+
+void MixinInProcessBrowserTest::TearDownOnMainThread() {
+ InProcessBrowserTest::TearDownOnMainThread();
+ for (ScopedVector<Mixin>::reverse_iterator it = mixins_.rbegin();
+ it != mixins_.rend();
+ ++it) {
+ (*it)->TearDownInProcessBrowserTestFixture();
+ }
+}
+void MixinInProcessBrowserTest::TearDownInProcessBrowserTestFixture() {
+ InProcessBrowserTest::TearDownInProcessBrowserTestFixture();
+ for (ScopedVector<Mixin>::reverse_iterator it = mixins_.rbegin();
+ it != mixins_.rend();
+ ++it) {
+ (*it)->TearDownInProcessBrowserTestFixture();
+ }
+}
+
+void MixinInProcessBrowserTest::AddMixin(
+ MixinInProcessBrowserTest::Mixin* mixin) {
+ mixins_.push_back(mixin);
Denis Kuznetsov (DE-MUC) 2014/09/16 14:08:34 Maybe add some check that AddMixin can not be call
Lisa Ignatyeva 2014/09/17 10:39:37 Done.
+}
+
+} // namespace chromeos

Powered by Google App Engine
This is Rietveld 408576698