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

Side by Side Diff: chrome/browser/diagnostics/diagnostics_model_unittest.cc

Issue 3935001: Rename CommandLine::ARGUMENTS_ONLY to NO_PROGRAM. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years, 2 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/diagnostics/diagnostics_model.h" 5 #include "chrome/browser/diagnostics/diagnostics_model.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 9
10 // Basic harness to adquire and release the Diagnostic model object. 10 // Basic harness to adquire and release the Diagnostic model object.
11 class DiagnosticsModelTest : public testing::Test { 11 class DiagnosticsModelTest : public testing::Test {
12 protected: 12 protected:
13 DiagnosticsModelTest() 13 DiagnosticsModelTest()
14 : model_(NULL), 14 : model_(NULL),
15 cmdline_(CommandLine::ARGUMENTS_ONLY) { 15 cmdline_(CommandLine::NO_PROGRAM) {
16 } 16 }
17 17
18 virtual ~DiagnosticsModelTest() { } 18 virtual ~DiagnosticsModelTest() { }
19 19
20 virtual void SetUp() { 20 virtual void SetUp() {
21 model_ = MakeDiagnosticsModel(cmdline_); 21 model_ = MakeDiagnosticsModel(cmdline_);
22 ASSERT_TRUE(model_ != NULL); 22 ASSERT_TRUE(model_ != NULL);
23 } 23 }
24 24
25 virtual void TearDown() { 25 virtual void TearDown() {
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 // final state is correct. 97 // final state is correct.
98 TEST_F(DiagnosticsModelTest, RunAll) { 98 TEST_F(DiagnosticsModelTest, RunAll) {
99 UTObserver observer; 99 UTObserver observer;
100 EXPECT_FALSE(observer.done()); 100 EXPECT_FALSE(observer.done());
101 model_->RunAll(&observer); 101 model_->RunAll(&observer);
102 EXPECT_TRUE(observer.done()); 102 EXPECT_TRUE(observer.done());
103 EXPECT_GT(observer.progress_called(), 0); 103 EXPECT_GT(observer.progress_called(), 0);
104 EXPECT_EQ(kDiagnosticsTestCount, model_->GetTestRunCount()); 104 EXPECT_EQ(kDiagnosticsTestCount, model_->GetTestRunCount());
105 EXPECT_EQ(kDiagnosticsTestCount, observer.finished()); 105 EXPECT_EQ(kDiagnosticsTestCount, observer.finished());
106 } 106 }
OLDNEW
« no previous file with comments | « chrome/browser/browser_init_browsertest.cc ('k') | chrome/browser/extensions/extensions_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698