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

Side by Side Diff: chrome/browser/extensions/shared_module_apitest.cc

Issue 13971005: Basic multi-module support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add browser test Created 7 years, 8 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
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/extensions/extension_apitest.h"
6
7 using extensions::Extension;
8
9 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, SharedModule) {
10 // import_pass depends on this shared module.
11 // NB: We use LoadExtension instead of InstallExtension here so the public-key
12 // in 'shared' is used to generate the extension ID so it can be imported
13 // correctly. We use InstallExtension otherwise so the loads happen through
14 // the CRX installer which validates imports.
15 ASSERT_TRUE(LoadExtension(
16 test_data_dir_.AppendASCII("shared_module").AppendASCII("shared")));
17
18 ResultCatcher catcher;
19 EXPECT_TRUE(InstallExtension(
20 test_data_dir_.AppendASCII("shared_module").AppendASCII("import_pass"),
21 1));
22 EXPECT_TRUE(catcher.GetNextResult()) << catcher.message();
asargent_no_longer_on_chrome 2013/04/27 00:13:50 I think you might be able to slightly simplify thi
elijahtaylor1 2013/04/27 00:26:10 Good call, Done
23
24 EXPECT_FALSE(InstallExtension(
25 test_data_dir_.AppendASCII("shared_module")
26 .AppendASCII("import_wrong_version"), 0));
27 EXPECT_FALSE(InstallExtension(
28 test_data_dir_.AppendASCII("shared_module")
29 .AppendASCII("import_non_existent"), 0));
30 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_protocols.cc ('k') | chrome/browser/renderer_host/chrome_render_view_host_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698