Chromium Code Reviews| 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 |