OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/mobile/mobile_activator.h" | 5 #include "chrome/browser/chromeos/mobile/mobile_activator.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 9 #include "base/macros.h" |
7 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
8 #include "base/values.h" | 11 #include "base/values.h" |
9 #include "chromeos/dbus/dbus_thread_manager.h" | 12 #include "chromeos/dbus/dbus_thread_manager.h" |
10 #include "chromeos/network/network_connection_handler.h" | 13 #include "chromeos/network/network_connection_handler.h" |
11 #include "chromeos/network/network_handler.h" | 14 #include "chromeos/network/network_handler.h" |
12 #include "chromeos/network/network_state.h" | 15 #include "chromeos/network/network_state.h" |
13 #include "chromeos/network/network_state_handler.h" | 16 #include "chromeos/network/network_state_handler.h" |
14 #include "content/public/browser/browser_thread.h" | 17 #include "content/public/browser/browser_thread.h" |
15 #include "testing/gmock/include/gmock/gmock.h" | 18 #include "testing/gmock/include/gmock/gmock.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 EXPECT_EQ(MobileActivator::PLAN_ACTIVATION_RECONNECTING, | 354 EXPECT_EQ(MobileActivator::PLAN_ACTIVATION_RECONNECTING, |
352 mobile_activator_.InvokePickNextState(&cellular_network_, | 355 mobile_activator_.InvokePickNextState(&cellular_network_, |
353 &error_description)); | 356 &error_description)); |
354 set_activator_state(MobileActivator::PLAN_ACTIVATION_SHOWING_PAYMENT); | 357 set_activator_state(MobileActivator::PLAN_ACTIVATION_SHOWING_PAYMENT); |
355 EXPECT_EQ(MobileActivator::PLAN_ACTIVATION_RECONNECTING, | 358 EXPECT_EQ(MobileActivator::PLAN_ACTIVATION_RECONNECTING, |
356 mobile_activator_.InvokePickNextState(&cellular_network_, | 359 mobile_activator_.InvokePickNextState(&cellular_network_, |
357 &error_description)); | 360 &error_description)); |
358 } | 361 } |
359 | 362 |
360 } // namespace chromeos | 363 } // namespace chromeos |
OLD | NEW |