| 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 <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/macros.h" |
| 10 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
| 12 #include "base/test/simple_test_clock.h" | 13 #include "base/test/simple_test_clock.h" |
| 13 #include "net/base/sdch_manager.h" | 14 #include "net/base/sdch_manager.h" |
| 14 #include "net/base/sdch_observer.h" | 15 #include "net/base/sdch_observer.h" |
| 15 #include "net/log/net_log.h" | 16 #include "net/log/net_log.h" |
| 16 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
| 17 #include "url/gurl.h" | 18 #include "url/gurl.h" |
| 18 | 19 |
| 19 namespace net { | 20 namespace net { |
| (...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 625 EXPECT_EQ(server_hash, observer.last_server_hash()); | 626 EXPECT_EQ(server_hash, observer.last_server_hash()); |
| 626 | 627 |
| 627 EXPECT_EQ(SDCH_OK, sdch_manager()->RemoveSdchDictionary(server_hash)); | 628 EXPECT_EQ(SDCH_OK, sdch_manager()->RemoveSdchDictionary(server_hash)); |
| 628 EXPECT_EQ(1, observer.dictionary_removed_notifications()); | 629 EXPECT_EQ(1, observer.dictionary_removed_notifications()); |
| 629 EXPECT_EQ(server_hash, observer.last_server_hash()); | 630 EXPECT_EQ(server_hash, observer.last_server_hash()); |
| 630 | 631 |
| 631 sdch_manager()->RemoveObserver(&observer); | 632 sdch_manager()->RemoveObserver(&observer); |
| 632 } | 633 } |
| 633 | 634 |
| 634 } // namespace net | 635 } // namespace net |
| OLD | NEW |