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

Side by Side Diff: chrome/browser/extensions/api/test/test_api.cc

Issue 12319145: Using the new Network*Handlers in networkingPrivate Extension API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Initial patch. Created 7 years, 9 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 | Annotate | Revision Log
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 "chrome/browser/extensions/api/test/test_api.h" 5 #include "chrome/browser/extensions/api/test/test_api.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/memory/singleton.h" 10 #include "base/memory/singleton.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 content::Source<Profile>(dispatcher()->profile()), 63 content::Source<Profile>(dispatcher()->profile()),
64 content::Details<std::string>(&message)); 64 content::Details<std::string>(&message));
65 return true; 65 return true;
66 } 66 }
67 67
68 TestLogFunction::~TestLogFunction() {} 68 TestLogFunction::~TestLogFunction() {}
69 69
70 bool TestLogFunction::RunImpl() { 70 bool TestLogFunction::RunImpl() {
71 std::string message; 71 std::string message;
72 EXTENSION_FUNCTION_VALIDATE(args_->GetString(0, &message)); 72 EXTENSION_FUNCTION_VALIDATE(args_->GetString(0, &message));
73 LOG(ERROR) << message;
Greg Spencer (Chromium) 2013/03/02 00:09:11 Are you sure we want this? Seems like someone put
pneubeck (no reviews) 2013/03/04 10:44:38 Yes. that's a leftover. Somehow it's not possible
73 VLOG(1) << message; 74 VLOG(1) << message;
74 return true; 75 return true;
75 } 76 }
76 77
77 TestResetQuotaFunction::~TestResetQuotaFunction() {} 78 TestResetQuotaFunction::~TestResetQuotaFunction() {}
78 79
79 bool TestResetQuotaFunction::RunImpl() { 80 bool TestResetQuotaFunction::RunImpl() {
80 ExtensionService* service = profile()->GetExtensionService(); 81 ExtensionService* service = profile()->GetExtensionService();
81 ExtensionsQuotaService* quota = service->quota_service(); 82 ExtensionsQuotaService* quota = service->quota_service();
82 quota->Purge(); 83 quota->Purge();
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 if (!test_config_state->config_state()) { 138 if (!test_config_state->config_state()) {
138 error_ = kNoTestConfigDataError; 139 error_ = kNoTestConfigDataError;
139 return false; 140 return false;
140 } 141 }
141 142
142 SetResult(test_config_state->config_state()->DeepCopy()); 143 SetResult(test_config_state->config_state()->DeepCopy());
143 return true; 144 return true;
144 } 145 }
145 146
146 } // namespace extensions 147 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698