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

Side by Side Diff: chrome/browser/component_updater/test/component_updater_service_unittest.cc

Issue 10702188: Fix unit test to allow repeated successful runs by avoiding a function static variable in tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add DEPS file Created 8 years, 5 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/component_updater/component_updater_service.h" 5 #include "chrome/browser/component_updater/component_updater_service.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/file_path.h" 8 #include "base/file_path.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/memory/scoped_vector.h" 10 #include "base/memory/scoped_vector.h"
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 test_configurator()->SetLoopCount(1); 408 test_configurator()->SetLoopCount(1);
409 component_updater()->Start(); 409 component_updater()->Start();
410 message_loop.Run(); 410 message_loop.Run();
411 411
412 EXPECT_EQ(1, interceptor->hit_count()); 412 EXPECT_EQ(1, interceptor->hit_count());
413 EXPECT_EQ(0, static_cast<TestInstaller*>(com.installer)->error()); 413 EXPECT_EQ(0, static_cast<TestInstaller*>(com.installer)->error());
414 EXPECT_EQ(0, static_cast<TestInstaller*>(com.installer)->install_count()); 414 EXPECT_EQ(0, static_cast<TestInstaller*>(com.installer)->install_count());
415 415
416 component_updater()->Stop(); 416 component_updater()->Stop();
417 } 417 }
OLDNEW
« no previous file with comments | « chrome/browser/component_updater/test/component_installers_unittest.cc ('k') | chrome/chrome_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698