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

Side by Side Diff: storage/browser/quota/storage_monitor_unittest.cc

Issue 2876013002: Add missing IWYU message_loop.h includes. (Closed)
Patch Set: fix upstream Created 3 years, 7 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
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 <stdint.h> 5 #include <stdint.h>
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/files/scoped_temp_dir.h" 9 #include "base/files/scoped_temp_dir.h"
10 #include "base/message_loop/message_loop.h"
10 #include "base/run_loop.h" 11 #include "base/run_loop.h"
11 #include "base/threading/thread_task_runner_handle.h" 12 #include "base/threading/thread_task_runner_handle.h"
12 #include "net/base/url_util.h" 13 #include "net/base/url_util.h"
13 #include "storage/browser/quota/quota_manager.h" 14 #include "storage/browser/quota/quota_manager.h"
14 #include "storage/browser/quota/quota_manager_proxy.h" 15 #include "storage/browser/quota/quota_manager_proxy.h"
15 #include "storage/browser/quota/storage_monitor.h" 16 #include "storage/browser/quota/storage_monitor.h"
16 #include "storage/browser/quota/storage_observer.h" 17 #include "storage/browser/quota/storage_observer.h"
17 #include "storage/browser/test/mock_special_storage_policy.h" 18 #include "storage/browser/test/mock_special_storage_policy.h"
18 #include "storage/browser/test/mock_storage_client.h" 19 #include "storage/browser/test/mock_storage_client.h"
19 #include "testing/gtest/include/gtest/gtest.h" 20 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after
696 base::RunLoop().RunUntilIdle(); 697 base::RunLoop().RunUntilIdle();
697 698
698 // Verify that the observer receives it. 699 // Verify that the observer receives it.
699 ASSERT_EQ(1, mock_observer.EventCount()); 700 ASSERT_EQ(1, mock_observer.EventCount());
700 const StorageObserver::Event& event = mock_observer.LastEvent(); 701 const StorageObserver::Event& event = mock_observer.LastEvent();
701 EXPECT_EQ(params.filter, event.filter); 702 EXPECT_EQ(params.filter, event.filter);
702 EXPECT_EQ(kTestUsage, event.usage); 703 EXPECT_EQ(kTestUsage, event.usage);
703 } 704 }
704 705
705 } // namespace content 706 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698