Home
last modified time | relevance | path

Searched refs:mock_power_library_ (Results 1 – 3 of 3) sorted by relevance

/external/chromium/chrome/browser/chromeos/status/
Dpower_menu_button_browsertest.cc25 MockPowerLibrary *mock_power_library_; member in chromeos::PowerMenuButtonTest
28 mock_power_library_(NULL) { in PowerMenuButtonTest()
34 mock_power_library_ = cros_mock_->mock_power_library(); in SetUpInProcessBrowserTestFixture()
46 power->PowerChanged(mock_power_library_); in CallPowerChangedAndGetIconId()
52 EXPECT_CALL(*mock_power_library_, battery_is_present()) in IN_PROC_BROWSER_TEST_F()
55 EXPECT_CALL(*mock_power_library_, battery_percentage()) in IN_PROC_BROWSER_TEST_F()
58 EXPECT_CALL(*mock_power_library_, battery_fully_charged()) in IN_PROC_BROWSER_TEST_F()
61 EXPECT_CALL(*mock_power_library_, line_power_on()) in IN_PROC_BROWSER_TEST_F()
64 EXPECT_CALL(*mock_power_library_, battery_time_to_empty()) in IN_PROC_BROWSER_TEST_F()
67 EXPECT_CALL(*mock_power_library_, battery_time_to_full()) in IN_PROC_BROWSER_TEST_F()
[all …]
/external/chromium/chrome/browser/chromeos/cros/
Dcros_mock.cc42 mock_power_library_(NULL), in CrosMock()
102 if (mock_power_library_) in InitMockPowerLibrary()
104 mock_power_library_ = new StrictMock<MockPowerLibrary>(); in InitMockPowerLibrary()
105 test_api()->SetPowerLibrary(mock_power_library_, true); in InitMockPowerLibrary()
147 return mock_power_library_; in mock_power_library()
314 EXPECT_CALL(*mock_power_library_, AddObserver(_)) in SetPowerLibraryStatusAreaExpectations()
317 EXPECT_CALL(*mock_power_library_, battery_fully_charged()) in SetPowerLibraryStatusAreaExpectations()
321 EXPECT_CALL(*mock_power_library_, battery_is_present()) in SetPowerLibraryStatusAreaExpectations()
325 EXPECT_CALL(*mock_power_library_, battery_percentage()) in SetPowerLibraryStatusAreaExpectations()
329 EXPECT_CALL(*mock_power_library_, line_power_on()) in SetPowerLibraryStatusAreaExpectations()
[all …]
Dcros_mock.h98 MockPowerLibrary* mock_power_library_; variable