OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "chrome/browser/chromeos/login/mixin_in_process_browser_test.h" | |
6 | |
7 namespace chromeos { | |
8 | |
9 MixinInProcessBrowserTest::MixinInProcessBrowserTest() { | |
10 } | |
11 | |
12 MixinInProcessBrowserTest::~MixinInProcessBrowserTest() { | |
13 } | |
14 | |
15 void MixinInProcessBrowserTest::SetUpCommandLine( | |
16 base::CommandLine* command_line) { | |
17 for (ScopedVector<Mixin>::iterator it = mixins_.begin(); it != mixins_.end(); | |
18 ++it) { | |
19 (*it)->SetUpCommandLine(command_line); | |
20 } | |
21 InProcessBrowserTest::SetUpCommandLine(command_line); | |
22 } | |
23 | |
24 void MixinInProcessBrowserTest::SetUpOnMainThread() { | |
25 for (ScopedVector<Mixin>::iterator it = mixins_.begin(); it != mixins_.end(); | |
26 ++it) { | |
27 (*it)->SetUpOnMainThread(); | |
28 } | |
29 InProcessBrowserTest::SetUpOnMainThread(); | |
30 } | |
31 void MixinInProcessBrowserTest::SetUpInProcessBrowserTestFixture() { | |
32 for (ScopedVector<Mixin>::iterator it = mixins_.begin(); it != mixins_.end(); | |
33 ++it) { | |
34 (*it)->SetUpInProcessBrowserTestFixture(); | |
35 } | |
36 InProcessBrowserTest::SetUpInProcessBrowserTestFixture(); | |
37 } | |
38 | |
39 void MixinInProcessBrowserTest::TearDownOnMainThread() { | |
40 InProcessBrowserTest::TearDownOnMainThread(); | |
41 for (ScopedVector<Mixin>::reverse_iterator it = mixins_.rbegin(); | |
42 it != mixins_.rend(); | |
43 ++it) { | |
44 (*it)->TearDownInProcessBrowserTestFixture(); | |
45 } | |
46 } | |
47 void MixinInProcessBrowserTest::TearDownInProcessBrowserTestFixture() { | |
48 InProcessBrowserTest::TearDownInProcessBrowserTestFixture(); | |
49 for (ScopedVector<Mixin>::reverse_iterator it = mixins_.rbegin(); | |
50 it != mixins_.rend(); | |
51 ++it) { | |
52 (*it)->TearDownInProcessBrowserTestFixture(); | |
53 } | |
54 } | |
55 | |
56 void MixinInProcessBrowserTest::AddMixin( | |
57 MixinInProcessBrowserTest::Mixin* mixin) { | |
58 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.
| |
59 } | |
60 | |
61 } // namespace chromeos | |
OLD | NEW |