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

Side by Side Diff: chrome/browser/utility_process_host_unittest.cc

Issue 390019: Parse messages.json in ExtensionUnpacker (like we do for manifest).... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/utility_process_host.h" 5 #include "chrome/browser/utility_process_host.h"
6 6
7 #include "base/file_path.h" 7 #include "base/file_path.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 25 matching lines...) Expand all
36 class TestUtilityProcessHostClient : public UtilityProcessHost::Client { 36 class TestUtilityProcessHostClient : public UtilityProcessHost::Client {
37 public: 37 public:
38 explicit TestUtilityProcessHostClient() : success_(false) { 38 explicit TestUtilityProcessHostClient() : success_(false) {
39 } 39 }
40 40
41 // UtilityProcessHost::Client methods. 41 // UtilityProcessHost::Client methods.
42 virtual void OnProcessCrashed() { 42 virtual void OnProcessCrashed() {
43 NOTREACHED(); 43 NOTREACHED();
44 } 44 }
45 45
46 virtual void OnUnpackExtensionSucceeded(const DictionaryValue& manifest) { 46 virtual void OnUnpackExtensionSucceeded(const DictionaryValue& manifest,
47 const DictionaryValue& catalogs) {
47 success_ = true; 48 success_ = true;
48 } 49 }
49 50
50 virtual void OnUnpackExtensionFailed(const std::string& error_message) { 51 virtual void OnUnpackExtensionFailed(const std::string& error_message) {
51 NOTREACHED(); 52 NOTREACHED();
52 } 53 }
53 54
54 virtual void OnUnpackWebResourceSucceeded( 55 virtual void OnUnpackWebResourceSucceeded(
55 const ListValue& json_data) { 56 const ListValue& json_data) {
56 NOTREACHED(); 57 NOTREACHED();
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 temp_extension_dir.AppendASCII("theme.crx")); 154 temp_extension_dir.AppendASCII("theme.crx"));
154 observer.RunUntilClose(process_host->id()); 155 observer.RunUntilClose(process_host->id());
155 EXPECT_TRUE(client->success()); 156 EXPECT_TRUE(client->success());
156 157
157 // Clean up the temp dir. 158 // Clean up the temp dir.
158 file_util::Delete(temp_extension_dir, true); 159 file_util::Delete(temp_extension_dir, true);
159 } 160 }
160 #endif 161 #endif
161 162
162 } // namespace 163 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698