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

Side by Side 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 unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698