OLD | NEW |
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 "chrome/browser/chromeos/net/wake_on_wifi_connection_observer.h" | 5 #include "chrome/browser/chromeos/net/wake_on_wifi_connection_observer.h" |
6 #include "chrome/browser/services/gcm/fake_gcm_profile_service.h" | 6 #include "chrome/browser/gcm/fake_gcm_profile_service.h" |
7 #include "chrome/browser/services/gcm/gcm_profile_service_factory.h" | 7 #include "chrome/browser/gcm/gcm_profile_service_factory.h" |
8 #include "chrome/test/base/testing_profile.h" | 8 #include "chrome/test/base/testing_profile.h" |
9 #include "chromeos/network/mock_network_device_handler.h" | 9 #include "chromeos/network/mock_network_device_handler.h" |
10 #include "content/public/test/test_browser_thread_bundle.h" | 10 #include "content/public/test/test_browser_thread_bundle.h" |
11 #include "testing/gmock/include/gmock/gmock.h" | 11 #include "testing/gmock/include/gmock/gmock.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
13 | 13 |
14 using testing::_; | 14 using testing::_; |
15 using testing::Return; | 15 using testing::Return; |
16 using testing::StrictMock; | 16 using testing::StrictMock; |
17 | 17 |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 &mock_network_device_handler_); | 87 &mock_network_device_handler_); |
88 | 88 |
89 EXPECT_CALL(mock_network_device_handler_, | 89 EXPECT_CALL(mock_network_device_handler_, |
90 RemoveWifiWakeOnPacketConnection(_, _, _)) | 90 RemoveWifiWakeOnPacketConnection(_, _, _)) |
91 .Times(0); | 91 .Times(0); |
92 | 92 |
93 observer.RemoveWakeOnPacketConnection(); | 93 observer.RemoveWakeOnPacketConnection(); |
94 } | 94 } |
95 | 95 |
96 } // namespace chromeos | 96 } // namespace chromeos |
OLD | NEW |