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

Side by Side Diff: sync/internal_api/http_bridge_unittest.cc

Issue 399313006: Move bit_cast from base/macros.h to its own header (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix chromeos compile after r368203 Created 4 years, 11 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
« no previous file with comments | « sync/internal_api/http_bridge.cc ('k') | third_party/crashpad/README.chromium » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « sync/internal_api/http_bridge.cc ('k') | third_party/crashpad/README.chromium » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698