| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 <stddef.h> | 5 #include <stddef.h> |
| 6 #include <stdint.h> | 6 #include <stdint.h> |
| 7 | 7 |
| 8 #include "base/bit_cast.h" |
| 8 #include "base/metrics/field_trial.h" | 9 #include "base/metrics/field_trial.h" |
| 9 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
| 10 #include "base/synchronization/waitable_event.h" | 11 #include "base/synchronization/waitable_event.h" |
| 11 #include "base/test/mock_entropy_provider.h" | 12 #include "base/test/mock_entropy_provider.h" |
| 12 #include "base/threading/thread.h" | 13 #include "base/threading/thread.h" |
| 13 #include "build/build_config.h" | 14 #include "build/build_config.h" |
| 14 #include "net/http/http_response_headers.h" | 15 #include "net/http/http_response_headers.h" |
| 15 #include "net/test/embedded_test_server/embedded_test_server.h" | 16 #include "net/test/embedded_test_server/embedded_test_server.h" |
| 16 #include "net/url_request/test_url_fetcher_factory.h" | 17 #include "net/url_request/test_url_fetcher_factory.h" |
| 17 #include "net/url_request/url_fetcher_delegate.h" | 18 #include "net/url_request/url_fetcher_delegate.h" |
| (...skipping 663 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 681 | 682 |
| 682 // Sync thread: Finally run the posted task, only to find that our | 683 // Sync thread: Finally run the posted task, only to find that our |
| 683 // HttpBridgeFactory has been neutered. Should not crash. | 684 // HttpBridgeFactory has been neutered. Should not crash. |
| 684 factory->Init("TestUserAgent", BindToTrackerCallback()); | 685 factory->Init("TestUserAgent", BindToTrackerCallback()); |
| 685 | 686 |
| 686 // At this point, attempting to use the factory would trigger a crash. Both | 687 // At this point, attempting to use the factory would trigger a crash. Both |
| 687 // this test and the real world code should make sure this never happens. | 688 // this test and the real world code should make sure this never happens. |
| 688 } | 689 } |
| 689 | 690 |
| 690 } // namespace syncer | 691 } // namespace syncer |
| OLD | NEW |