OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/chromeos/customization/customization_document.h" | 5 #include "chrome/browser/chromeos/customization/customization_document.h" |
6 | 6 |
7 #include "base/message_loop/message_loop.h" | 7 #include "base/message_loop/message_loop.h" |
8 #include "base/prefs/testing_pref_service.h" | 8 #include "base/prefs/testing_pref_service.h" |
9 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
11 #include "chrome/browser/chromeos/net/network_portal_detector_test_impl.h" | 11 #include "chrome/browser/chromeos/net/network_portal_detector_test_impl.h" |
12 #include "chrome/browser/extensions/external_provider_impl.h" | 12 #include "chrome/browser/extensions/external_provider_impl.h" |
13 #include "chrome/browser/prefs/browser_prefs.h" | 13 #include "chrome/browser/prefs/browser_prefs.h" |
14 #include "chrome/browser/prefs/pref_service_mock_factory.h" | |
15 #include "chrome/browser/prefs/pref_service_syncable.h" | |
16 #include "chrome/browser/ui/app_list/app_list_syncable_service.h" | 14 #include "chrome/browser/ui/app_list/app_list_syncable_service.h" |
17 #include "chrome/browser/ui/app_list/app_list_syncable_service_factory.h" | 15 #include "chrome/browser/ui/app_list/app_list_syncable_service_factory.h" |
18 #include "chrome/test/base/testing_browser_process.h" | 16 #include "chrome/test/base/testing_browser_process.h" |
19 #include "chrome/test/base/testing_profile.h" | 17 #include "chrome/test/base/testing_profile.h" |
20 #include "chromeos/dbus/dbus_thread_manager.h" | 18 #include "chromeos/dbus/dbus_thread_manager.h" |
21 #include "chromeos/network/network_handler.h" | 19 #include "chromeos/network/network_handler.h" |
22 #include "chromeos/network/network_state.h" | 20 #include "chromeos/network/network_state.h" |
23 #include "chromeos/network/network_state_handler.h" | 21 #include "chromeos/network/network_state_handler.h" |
24 #include "chromeos/system/fake_statistics_provider.h" | 22 #include "chromeos/system/fake_statistics_provider.h" |
25 #include "components/pref_registry/pref_registry_syncable.h" | 23 #include "components/pref_registry/pref_registry_syncable.h" |
| 24 #include "components/syncable_prefs/pref_service_mock_factory.h" |
| 25 #include "components/syncable_prefs/pref_service_syncable.h" |
26 #include "content/public/test/test_browser_thread_bundle.h" | 26 #include "content/public/test/test_browser_thread_bundle.h" |
27 #include "extensions/common/extension.h" | 27 #include "extensions/common/extension.h" |
28 #include "extensions/common/manifest.h" | 28 #include "extensions/common/manifest.h" |
29 #include "net/http/http_response_headers.h" | 29 #include "net/http/http_response_headers.h" |
30 #include "net/http/http_status_code.h" | 30 #include "net/http/http_status_code.h" |
31 #include "net/url_request/test_url_fetcher_factory.h" | 31 #include "net/url_request/test_url_fetcher_factory.h" |
32 #include "net/url_request/url_request_status.h" | 32 #include "net/url_request/url_request_status.h" |
33 #include "testing/gmock/include/gmock/gmock.h" | 33 #include "testing/gmock/include/gmock/gmock.h" |
34 #include "testing/gtest/include/gtest/gtest.h" | 34 #include "testing/gtest/include/gtest/gtest.h" |
35 | 35 |
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
472 EXPECT_CALL(visitor, OnExternalExtensionUpdateUrlFound(_, _, _, _, _, _)) | 472 EXPECT_CALL(visitor, OnExternalExtensionUpdateUrlFound(_, _, _, _, _, _)) |
473 .Times(0); | 473 .Times(0); |
474 EXPECT_CALL(visitor, OnExternalProviderReady(_)) | 474 EXPECT_CALL(visitor, OnExternalProviderReady(_)) |
475 .Times(1); | 475 .Times(1); |
476 | 476 |
477 RunUntilIdle(); | 477 RunUntilIdle(); |
478 EXPECT_TRUE(doc->IsReady()); | 478 EXPECT_TRUE(doc->IsReady()); |
479 } | 479 } |
480 | 480 |
481 } // namespace chromeos | 481 } // namespace chromeos |
OLD | NEW |