| 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 "base/files/scoped_temp_dir.h" | 5 #include "base/files/scoped_temp_dir.h" |
| 6 #include "base/macros.h" |
| 6 #include "base/threading/thread.h" | 7 #include "base/threading/thread.h" |
| 7 #include "content/browser/browser_thread_impl.h" | 8 #include "content/browser/browser_thread_impl.h" |
| 8 #include "content/browser/gpu/shader_disk_cache.h" | 9 #include "content/browser/gpu/shader_disk_cache.h" |
| 9 #include "content/public/test/test_browser_thread_bundle.h" | 10 #include "content/public/test/test_browser_thread_bundle.h" |
| 10 #include "net/base/test_completion_callback.h" | 11 #include "net/base/test_completion_callback.h" |
| 11 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 12 | 13 |
| 13 namespace content { | 14 namespace content { |
| 14 namespace { | 15 namespace { |
| 15 | 16 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 EXPECT_EQ(1, cache->Size()); | 67 EXPECT_EQ(1, cache->Size()); |
| 67 | 68 |
| 68 base::Time time; | 69 base::Time time; |
| 69 net::TestCompletionCallback clear_cb; | 70 net::TestCompletionCallback clear_cb; |
| 70 rv = cache->Clear(time, time, clear_cb.callback()); | 71 rv = cache->Clear(time, time, clear_cb.callback()); |
| 71 ASSERT_EQ(net::OK, clear_cb.GetResult(rv)); | 72 ASSERT_EQ(net::OK, clear_cb.GetResult(rv)); |
| 72 EXPECT_EQ(0, cache->Size()); | 73 EXPECT_EQ(0, cache->Size()); |
| 73 }; | 74 }; |
| 74 | 75 |
| 75 } // namespace content | 76 } // namespace content |
| OLD | NEW |