| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_CHROMEOS_CROS_CROS_MOCK_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_CROS_CROS_MOCK_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_CROS_CROS_MOCK_H_ | 6 #define CHROME_BROWSER_CHROMEOS_CROS_CROS_MOCK_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/chromeos/cros/cros_library.h" | 8 #include "chrome/browser/chromeos/cros/cros_library.h" |
| 9 #include "chrome/test/in_process_browser_test.h" | 9 #include "chrome/test/in_process_browser_test.h" |
| 10 #include "cros/chromeos_input_method.h" | 10 #include "cros/chromeos_input_method.h" |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 // Add a call to this method in your SetUpInProcessBrowserTestFixture. | 70 // Add a call to this method in your SetUpInProcessBrowserTestFixture. |
| 71 // They are all configured with RetiresOnSaturation(). | 71 // They are all configured with RetiresOnSaturation(). |
| 72 // Once such expectation is used it won't block expectations you've defined. | 72 // Once such expectation is used it won't block expectations you've defined. |
| 73 void SetStatusAreaMocksExpectations(); | 73 void SetStatusAreaMocksExpectations(); |
| 74 | 74 |
| 75 // Methods to setup minimal mocks expectations for status area. | 75 // Methods to setup minimal mocks expectations for status area. |
| 76 void SetKeyboardLibraryStatusAreaExpectations(); | 76 void SetKeyboardLibraryStatusAreaExpectations(); |
| 77 void SetInputMethodLibraryStatusAreaExpectations(); | 77 void SetInputMethodLibraryStatusAreaExpectations(); |
| 78 void SetNetworkLibraryStatusAreaExpectations(); | 78 void SetNetworkLibraryStatusAreaExpectations(); |
| 79 void SetPowerLibraryStatusAreaExpectations(); | 79 void SetPowerLibraryStatusAreaExpectations(); |
| 80 void SetPowerLibraryExpectations(); |
| 80 void SetSpeechSynthesisLibraryExpectations(); | 81 void SetSpeechSynthesisLibraryExpectations(); |
| 81 void SetSystemLibraryStatusAreaExpectations(); | 82 void SetSystemLibraryStatusAreaExpectations(); |
| 82 void SetSystemLibraryExpectations(); | 83 void SetSystemLibraryExpectations(); |
| 83 void SetTouchpadLibraryExpectations(); | 84 void SetTouchpadLibraryExpectations(); |
| 84 | 85 |
| 85 void TearDownMocks(); | 86 void TearDownMocks(); |
| 86 | 87 |
| 87 // TestApi gives access to CrosLibrary private members. | 88 // TestApi gives access to CrosLibrary private members. |
| 88 chromeos::CrosLibrary::TestApi* test_api(); | 89 chromeos::CrosLibrary::TestApi* test_api(); |
| 89 | 90 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 100 MockSystemLibrary* mock_system_library_; | 101 MockSystemLibrary* mock_system_library_; |
| 101 MockTouchpadLibrary* mock_touchpad_library_; | 102 MockTouchpadLibrary* mock_touchpad_library_; |
| 102 | 103 |
| 103 ImePropertyList ime_properties_; | 104 ImePropertyList ime_properties_; |
| 104 DISALLOW_COPY_AND_ASSIGN(CrosMock); | 105 DISALLOW_COPY_AND_ASSIGN(CrosMock); |
| 105 }; | 106 }; |
| 106 | 107 |
| 107 } // namespace chromeos | 108 } // namespace chromeos |
| 108 | 109 |
| 109 #endif // CHROME_BROWSER_CHROMEOS_CROS_CROS_MOCK_H_ | 110 #endif // CHROME_BROWSER_CHROMEOS_CROS_CROS_MOCK_H_ |
| OLD | NEW |