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 "chromeos/dbus/power_manager_client.h" | 5 #include "chromeos/dbus/power_manager_client.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <memory> | 10 #include <memory> |
(...skipping 787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
798 } | 798 } |
799 | 799 |
800 PowerManagerClient::~PowerManagerClient() { | 800 PowerManagerClient::~PowerManagerClient() { |
801 } | 801 } |
802 | 802 |
803 // static | 803 // static |
804 PowerManagerClient* PowerManagerClient::Create( | 804 PowerManagerClient* PowerManagerClient::Create( |
805 DBusClientImplementationType type) { | 805 DBusClientImplementationType type) { |
806 if (type == REAL_DBUS_CLIENT_IMPLEMENTATION) | 806 if (type == REAL_DBUS_CLIENT_IMPLEMENTATION) |
807 return new PowerManagerClientImpl(); | 807 return new PowerManagerClientImpl(); |
808 DCHECK_EQ(STUB_DBUS_CLIENT_IMPLEMENTATION, type); | 808 DCHECK_EQ(FAKE_DBUS_CLIENT_IMPLEMENTATION, type); |
809 return new FakePowerManagerClient(); | 809 return new FakePowerManagerClient(); |
810 } | 810 } |
811 | 811 |
812 } // namespace chromeos | 812 } // namespace chromeos |
OLD | NEW |