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

Side by Side Diff: chrome/browser/extensions/api/media_galleries_private/media_galleries_watch_apitest.cc

Issue 15239002: Move Extension and PermissionsData to extensions/common. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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) 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 // MediaGalleriesPrivate gallery watch API browser tests. 5 // MediaGalleriesPrivate gallery watch API browser tests.
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
11 #include "build/build_config.h" 11 #include "build/build_config.h"
12 #include "chrome/browser/extensions/extension_apitest.h" 12 #include "chrome/browser/extensions/extension_apitest.h"
13 #include "chrome/browser/extensions/extension_service.h" 13 #include "chrome/browser/extensions/extension_service.h"
14 #include "chrome/browser/extensions/extension_system.h" 14 #include "chrome/browser/extensions/extension_system.h"
15 #include "chrome/browser/extensions/extension_test_message_listener.h" 15 #include "chrome/browser/extensions/extension_test_message_listener.h"
16 #include "chrome/browser/media_galleries/media_galleries_test_util.h" 16 #include "chrome/browser/media_galleries/media_galleries_test_util.h"
17 #include "chrome/common/chrome_paths.h" 17 #include "chrome/common/chrome_paths.h"
18 #include "chrome/common/chrome_switches.h" 18 #include "chrome/common/chrome_switches.h"
19 #include "chrome/common/extensions/extension.h"
20 #include "content/public/browser/render_view_host.h" 19 #include "content/public/browser/render_view_host.h"
20 #include "extensions/common/extension.h"
21 21
22 namespace { 22 namespace {
23 23
24 // Id of test extension from 24 // Id of test extension from
25 // chrome/test/data/extensions/api_test/|kTestExtensionPath| 25 // chrome/test/data/extensions/api_test/|kTestExtensionPath|
26 const char kTestExtensionId[] = "gceegfkgibmgpfopknlcgleimclbknie"; 26 const char kTestExtensionId[] = "gceegfkgibmgpfopknlcgleimclbknie";
27 const char kTestExtensionPath[] = "media_galleries_private/gallerywatch"; 27 const char kTestExtensionPath[] = "media_galleries_private/gallerywatch";
28 28
29 #if !defined(OS_CHROMEOS) 29 #if !defined(OS_CHROMEOS)
30 // JS commands. 30 // JS commands.
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 // Gallery watchers does not exists. 425 // Gallery watchers does not exists.
426 // chrome.mediaGalleriesPrivate.getAllGalleryWatch should return an empty 426 // chrome.mediaGalleriesPrivate.getAllGalleryWatch should return an empty
427 // list. 427 // list.
428 ExtensionTestMessageListener get_all_gallery_watch_finished( 428 ExtensionTestMessageListener get_all_gallery_watch_finished(
429 kGetAllGalleryWatchResultA, false /* no reply */); 429 kGetAllGalleryWatchResultA, false /* no reply */);
430 ExecuteCmdAndCheckReply(host, kGetAllWatchedGalleryIdsCmd, 430 ExecuteCmdAndCheckReply(host, kGetAllWatchedGalleryIdsCmd,
431 kGetAllGalleryWatchOK); 431 kGetAllGalleryWatchOK);
432 EXPECT_TRUE(get_all_gallery_watch_finished.WaitUntilSatisfied()); 432 EXPECT_TRUE(get_all_gallery_watch_finished.WaitUntilSatisfied());
433 } 433 }
434 #endif 434 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698