OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_UNITTEST_H_ | 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_UNITTEST_H_ |
6 #define CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_UNITTEST_H_ | 6 #define CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_UNITTEST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 | 10 |
11 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
12 #include "chrome/browser/profiles/profile_info_cache_observer.h" | 12 #include "chrome/browser/profiles/profile_info_cache_observer.h" |
13 #include "chrome/test/base/testing_profile_manager.h" | 13 #include "chrome/test/base/testing_profile_manager.h" |
14 #include "content/test/test_browser_thread.h" | 14 #include "content/public/test/test_browser_thread.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
16 | 16 |
17 class FilePath; | 17 class FilePath; |
18 class ProfileInfoCache; | 18 class ProfileInfoCache; |
19 | 19 |
20 // Class used to test that ProfileInfoCache does not try to access any | 20 // Class used to test that ProfileInfoCache does not try to access any |
21 // unexpected profile names. | 21 // unexpected profile names. |
22 class ProfileNameVerifierObserver : public ProfileInfoCacheObserver { | 22 class ProfileNameVerifierObserver : public ProfileInfoCacheObserver { |
23 public: | 23 public: |
24 explicit ProfileNameVerifierObserver( | 24 explicit ProfileNameVerifierObserver( |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 TestingProfileManager testing_profile_manager_; | 60 TestingProfileManager testing_profile_manager_; |
61 | 61 |
62 private: | 62 private: |
63 MessageLoopForUI ui_loop_; | 63 MessageLoopForUI ui_loop_; |
64 content::TestBrowserThread ui_thread_; | 64 content::TestBrowserThread ui_thread_; |
65 content::TestBrowserThread file_thread_; | 65 content::TestBrowserThread file_thread_; |
66 ProfileNameVerifierObserver name_observer_; | 66 ProfileNameVerifierObserver name_observer_; |
67 }; | 67 }; |
68 | 68 |
69 #endif // CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_UNITTEST_H_ | 69 #endif // CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_UNITTEST_H_ |
OLD | NEW |