Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Side by Side Diff: dbus/test_service.cc

Issue 900793007: chromeos::dbus lint errors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chromeos/dbus/dbus_client_bundle.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "dbus/test_service.h" 5 #include "dbus/test_service.h"
6 6
7 #include <string>
8 #include <vector>
9
7 #include "base/bind.h" 10 #include "base/bind.h"
8 #include "base/test/test_timeouts.h" 11 #include "base/test/test_timeouts.h"
9 #include "base/threading/platform_thread.h" 12 #include "base/threading/platform_thread.h"
10 #include "dbus/bus.h" 13 #include "dbus/bus.h"
11 #include "dbus/exported_object.h" 14 #include "dbus/exported_object.h"
12 #include "dbus/message.h" 15 #include "dbus/message.h"
13 #include "dbus/object_manager.h" 16 #include "dbus/object_manager.h"
14 #include "dbus/object_path.h" 17 #include "dbus/object_path.h"
15 #include "dbus/property.h" 18 #include "dbus/property.h"
16 19
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 response_sender.Run(scoped_ptr<Response>()); 481 response_sender.Run(scoped_ptr<Response>());
479 return; 482 return;
480 } 483 }
481 484
482 if (action == "AddObject") { 485 if (action == "AddObject") {
483 AddObject(object_path); 486 AddObject(object_path);
484 } else if (action == "RemoveObject") { 487 } else if (action == "RemoveObject") {
485 RemoveObject(object_path); 488 RemoveObject(object_path);
486 } else if (action == "SetSendImmediatePropertiesChanged") { 489 } else if (action == "SetSendImmediatePropertiesChanged") {
487 SetSendImmediatePropertiesChanged(); 490 SetSendImmediatePropertiesChanged();
488 } if (action == "ReleaseOwnership") { 491 } else if (action == "ReleaseOwnership") {
489 ReleaseOwnership(base::Bind(&TestService::PerformActionResponse, 492 ReleaseOwnership(base::Bind(&TestService::PerformActionResponse,
490 base::Unretained(this), 493 base::Unretained(this),
491 method_call, response_sender)); 494 method_call, response_sender));
492 return; 495 return;
493 } else if (action == "Ownership") { 496 } else if (action == "Ownership") {
494 ReleaseOwnership(base::Bind(&TestService::OwnershipReleased, 497 ReleaseOwnership(base::Bind(&TestService::OwnershipReleased,
495 base::Unretained(this), 498 base::Unretained(this),
496 method_call, response_sender)); 499 method_call, response_sender));
497 return; 500 return;
498 } 501 }
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
699 array_writer.OpenDictEntry(&dict_entry_writer); 702 array_writer.OpenDictEntry(&dict_entry_writer);
700 dict_entry_writer.AppendString("Name"); 703 dict_entry_writer.AppendString("Name");
701 dict_entry_writer.AppendVariantOfString(name); 704 dict_entry_writer.AppendVariantOfString(name);
702 array_writer.CloseContainer(&dict_entry_writer); 705 array_writer.CloseContainer(&dict_entry_writer);
703 writer.CloseContainer(&array_writer); 706 writer.CloseContainer(&array_writer);
704 707
705 exported_object_->SendSignal(&signal); 708 exported_object_->SendSignal(&signal);
706 } 709 }
707 710
708 } // namespace dbus 711 } // namespace dbus
OLDNEW
« no previous file with comments | « chromeos/dbus/dbus_client_bundle.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698