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

Side by Side Diff: net/filter/sdch_filter_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: bit_cast spruce up+fix typo 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 <limits.h> 5 #include <limits.h>
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/bit_cast.h"
11 #include "base/logging.h" 12 #include "base/logging.h"
12 #include "base/macros.h" 13 #include "base/macros.h"
13 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
14 #include "base/test/histogram_tester.h" 15 #include "base/test/histogram_tester.h"
15 #include "base/test/simple_test_clock.h" 16 #include "base/test/simple_test_clock.h"
16 #include "net/base/io_buffer.h" 17 #include "net/base/io_buffer.h"
17 #include "net/base/sdch_dictionary.h" 18 #include "net/base/sdch_dictionary.h"
18 #include "net/base/sdch_manager.h" 19 #include "net/base/sdch_manager.h"
19 #include "net/base/sdch_observer.h" 20 #include "net/base/sdch_observer.h"
20 #include "net/filter/mock_filter_context.h" 21 #include "net/filter/mock_filter_context.h"
(...skipping 1270 matching lines...) Expand 10 before | Expand all | Expand 10 after
1291 1292
1292 filter.reset(nullptr); 1293 filter.reset(nullptr);
1293 1294
1294 // Confirm that we got a "DictionaryUsed" signal from the SdchManager 1295 // Confirm that we got a "DictionaryUsed" signal from the SdchManager
1295 // for our dictionary. 1296 // for our dictionary.
1296 EXPECT_EQ(1, observer.dictionary_used_calls()); 1297 EXPECT_EQ(1, observer.dictionary_used_calls());
1297 EXPECT_EQ(server_hash, observer.last_server_hash()); 1298 EXPECT_EQ(server_hash, observer.last_server_hash());
1298 } 1299 }
1299 1300
1300 } // namespace net 1301 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698