OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 <string> | 5 #include <string> |
6 #include <vector> | 6 #include <vector> |
7 | 7 |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/memory/scoped_vector.h" | 10 #include "base/memory/scoped_vector.h" |
11 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
12 #include "base/time.h" | 12 #include "base/time/time.h" |
13 #include "chrome/browser/net/evicted_domain_cookie_counter.h" | 13 #include "chrome/browser/net/evicted_domain_cookie_counter.h" |
14 #include "googleurl/src/gurl.h" | 14 #include "googleurl/src/gurl.h" |
15 #include "net/cookies/canonical_cookie.h" | 15 #include "net/cookies/canonical_cookie.h" |
16 #include "net/cookies/cookie_monster.h" | 16 #include "net/cookies/cookie_monster.h" |
17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
18 | 18 |
19 namespace chrome_browser_net { | 19 namespace chrome_browser_net { |
20 | 20 |
21 using base::Time; | 21 using base::Time; |
22 using base::TimeDelta; | 22 using base::TimeDelta; |
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
380 for (int i = 0; i < 6; ++i) | 380 for (int i = 0; i < 6; ++i) |
381 Add(cookies_[i]); | 381 Add(cookies_[i]); |
382 EXPECT_EQ(0u, cookie_counter_->GetStorageSize()); | 382 EXPECT_EQ(0u, cookie_counter_->GetStorageSize()); |
383 // Reinstatement delays: [1499,1497,(1494),(1490),(1485),300]. | 383 // Reinstatement delays: [1499,1497,(1494),(1490),(1485),300]. |
384 EXPECT_EQ("1499,1497;300", google_stat_ + ";" + other_stat_); | 384 EXPECT_EQ("1499,1497;300", google_stat_ + ";" + other_stat_); |
385 } | 385 } |
386 | 386 |
387 } // namespace | 387 } // namespace |
388 | 388 |
389 } // namespace chrome_browser_net | 389 } // namespace chrome_browser_net |
OLD | NEW |