OLD | NEW |
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 Loading... |
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 |
OLD | NEW |