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

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

Issue 10500016: Move test_browser_thread.h from content\test to content\public\test. This way we can enforce that i… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 6 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"
11 #include "base/message_loop.h" 11 #include "base/message_loop.h"
12 #include "base/path_service.h" 12 #include "base/path_service.h"
13 #include "base/values.h" 13 #include "base/values.h"
14 #include "chrome/browser/component_updater/component_updater_interceptor.h" 14 #include "chrome/browser/component_updater/component_updater_interceptor.h"
15 #include "chrome/common/chrome_notification_types.h" 15 #include "chrome/common/chrome_notification_types.h"
16 #include "chrome/common/chrome_paths.h" 16 #include "chrome/common/chrome_paths.h"
17 #include "content/public/browser/notification_observer.h" 17 #include "content/public/browser/notification_observer.h"
18 #include "content/public/browser/notification_service.h" 18 #include "content/public/browser/notification_service.h"
19 #include "content/test/test_browser_thread.h"
20 #include "content/public/common/url_fetcher.h" 19 #include "content/public/common/url_fetcher.h"
20 #include "content/public/test/test_browser_thread.h"
21 #include "content/test/test_notification_tracker.h" 21 #include "content/test/test_notification_tracker.h"
22 #include "googleurl/src/gurl.h" 22 #include "googleurl/src/gurl.h"
23 #include "libxml/globals.h" 23 #include "libxml/globals.h"
24 #include "net/url_request/url_request_test_util.h" 24 #include "net/url_request/url_request_test_util.h"
25 #include "testing/gtest/include/gtest/gtest.h" 25 #include "testing/gtest/include/gtest/gtest.h"
26 26
27 using content::BrowserThread; 27 using content::BrowserThread;
28 28
29 namespace { 29 namespace {
30 // Overrides some of the component updater behaviors so it is easier to test 30 // Overrides some of the component updater behaviors so it is easier to test
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 test_configurator()->SetLoopCount(1); 407 test_configurator()->SetLoopCount(1);
408 component_updater()->Start(); 408 component_updater()->Start();
409 message_loop.Run(); 409 message_loop.Run();
410 410
411 EXPECT_EQ(1, interceptor->hit_count()); 411 EXPECT_EQ(1, interceptor->hit_count());
412 EXPECT_EQ(0, static_cast<TestInstaller*>(com.installer)->error()); 412 EXPECT_EQ(0, static_cast<TestInstaller*>(com.installer)->error());
413 EXPECT_EQ(0, static_cast<TestInstaller*>(com.installer)->install_count()); 413 EXPECT_EQ(0, static_cast<TestInstaller*>(com.installer)->install_count());
414 414
415 component_updater()->Stop(); 415 component_updater()->Stop();
416 } 416 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698